Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Erling Jahr committed Nov 22, 2023
1 parent ca1d76d commit 8d81bbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/no/fintlabs/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ private Runnable onSaveNewUser(User user) {
User newUser = userRepository.save(user);
log.info("Create new user: " + user.getId());
memberService.process(memberService.create(newUser));
log.info("created kontrollUser: " + newUser.getIdentityProviderUserObjectId());
userEntityProducerService.publish(newUser);
};
}
Expand All @@ -54,6 +55,7 @@ private Consumer<User> onSaveExistingUser(User user) {
log.info("Update user: " + user.getId());
memberService.process(memberService.create(user));
User savedUser = userRepository.save(user);
log.info("update kontrollUser: " + savedUser.getIdentityProviderUserObjectId());
userEntityProducerService.publish(savedUser);
};
}
Expand Down

0 comments on commit 8d81bbf

Please sign in to comment.