mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
perf(sns): log each captured push and SMS at debug level (#7569)
* perf(sns): log each captured push and SMS at debug level * chore(test): check that pushes and SMS log below INFO
This commit is contained in:
1 parent
8fa33c710b
commit
a5291ca192
2 files changed
+26
-2
No files matched your search
@@ -1356,7 +1356,7 @@ public class SnsService implements Resettable, ResourceProvider {
|
||||
recordPushNotification(new PushNotification(
|
||||
endpoint.getArn(), app.getArn(), app.getPlatform(), endpoint.getToken(),
|
||||
payload, subject, messageAttributes, messageId, Instant.now()));
|
||||
LOG.infov("Captured push notification {0} -> {1} ({2})", messageId, endpoint.getArn(), app.getPlatform());
|
||||
LOG.debugv("Captured push notification {0} -> {1} ({2})", messageId, endpoint.getArn(), app.getPlatform());
|
||||
return messageId;
|
||||
}
|
||||
|
||||
@@ -3031,7 +3031,7 @@ public class SnsService implements Resettable, ResourceProvider {
|
||||
String effectiveRegion = region != null ? region : regionResolver.getDefaultRegion();
|
||||
SentSms sms = new SentSms(messageId, effectiveRegion, phoneNumber, message, subject, Instant.now());
|
||||
smsStore.put("sms::" + effectiveRegion + "::" + messageId, sms);
|
||||
LOG.infov("SNS SMS published: messageId={0} phone={1}", messageId, phoneNumber);
|
||||
LOG.debugv("SNS SMS published: messageId={0} phone={1}", messageId, phoneNumber);
|
||||
return messageId;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user