Skip to content

Commit

Permalink
#68 some ldap logging update
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1844 committed Aug 25, 2023
1 parent f4cf070 commit a7131cd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ class ActiveDirectoryLDAPAuthenticationProvider(config: ActiveDirectoryLDAPConfi
baseImplementation.authenticate(authentication)
} catch {
case re: RuntimeException =>
logger.error(re.getMessage, re)
re.printStackTrace()
throw re // retrow, just get info to logs
logger.error(s"Login of user $username: ${re.getMessage}", re)
throw re // rethrow, just get info to logs
}

val fromBasePrincipal = fromBase.getPrincipal.asInstanceOf[UserDetailsWithExtras]
Expand Down

0 comments on commit a7131cd

Please sign in to comment.