Skip to content

Commit effc1c1

Browse files
committed
refactor(CollectionServiceImpl): exclude user id from log messages.
It's already included from MDC.
1 parent 1b79701 commit effc1c1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/ru/mystamps/web/feature/collection/CollectionServiceImpl.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ public void addToCollection(Integer userId, AddToCollectionDto dto) {
8686
collectionDao.markAsModified(userId, new Date());
8787

8888
log.info(
89-
"Series #{} ({}) has been added to collection of user #{}",
89+
"Series #{} ({}) has been added to collection",
9090
dto.getSeriesId(),
91-
formatSeriesInfo(collectionDto),
92-
userId
91+
formatSeriesInfo(collectionDto)
9392
);
9493
}
9594

@@ -103,7 +102,7 @@ public void removeFromCollection(Integer userId, Integer seriesId) {
103102
collectionDao.removeSeriesFromUserCollection(userId, seriesId);
104103
collectionDao.markAsModified(userId, new Date());
105104

106-
log.info("Series #{} has been removed from collection of user #{}", seriesId, userId);
105+
log.info("Series #{} has been removed from collection", seriesId);
107106
}
108107

109108
@Override

0 commit comments

Comments
 (0)