Skip to content

Commit

Permalink
MK-1280
Browse files Browse the repository at this point in the history
Add log when cannot get username when writting data
  • Loading branch information
firone committed Feb 6, 2017
1 parent 1938c20 commit bfc331b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,8 @@ private String getCurrentUsername() {
if(subject != null && subject.getPrincipal() != null)
return subject.getPrincipal().toString();
} catch (UnknownSessionException ignore) {
log.debug(String.format(
"Impossible to get currentUsername, we are probably in an @Async method. Use DEFAULT_AUTHOR_NAME [%s]", AbstractGitWriteCommand.DEFAULT_AUTHOR_NAME), ignore);
}

return AbstractGitWriteCommand.DEFAULT_AUTHOR_NAME;
Expand Down

0 comments on commit bfc331b

Please sign in to comment.