diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/www/api/Notifications.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/Notifications.java b/src/main/java/com/juick/www/api/Notifications.java index df2fb507..c1ee74ab 100644 --- a/src/main/java/com/juick/www/api/Notifications.java +++ b/src/main/java/com/juick/www/api/Notifications.java @@ -135,8 +135,10 @@ public class Notifications { @RequestBody List<ExternalToken> list) { var userTokens = collectTokens(visitor.getUid()); list.forEach(t -> { + logger.debug("Received new token from {}: type {} token {}", visitor.getName(), t.type(), t.token()); if (userTokens.getTokens().stream().noneMatch(existing -> existing.token().equals(t.token()))) { - userService.addToken(visitor.getUid(), t.type(), t.token()); + var added = userService.addToken(visitor.getUid(), t.type(), t.token()); + logger.debug("Token added: {}", added); } }); return Status.OK; |