Skip to content

Commit 04ad2d4

Browse files
committed
chore(logging): log deletion of a users activation on debug level.
[skip ci]
1 parent d76a888 commit 04ad2d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/ru/mystamps/web/feature/account/UsersActivationServiceImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ public void remove(String activationKey) {
6363

6464
usersActivationDao.removeByActivationKey(activationKey);
6565

66-
log.info("Users activation '{}' has been deleted", activationKey);
66+
// we log with a low level because this method is always executed as part of a business
67+
// operation and we don't know a full context or don't have all the details on our level.
68+
// For example, during cleaning up an expired records, an outer method has a full object
69+
// and logs also e-mail and creation date. During account creation, the information that
70+
// the activation has been removed, isn't important and might be safely excluded from logs.
71+
log.debug("Users activation '{}' has been deleted", activationKey);
6772
}
6873

6974
@Override

0 commit comments

Comments
 (0)