394811: Make JAASLoginService log login failures to DEBUG instead of WARN. Same for some other exceptions.

This commit is contained in:
Thomas Becker 2012-11-21 17:40:26 +01:00
parent 9ab2a96715
commit 207745fdef
1 changed files with 11 additions and 6 deletions

View File

@ -245,27 +245,32 @@ public class JAASLoginService extends AbstractLifeCycle implements LoginService
} }
catch (LoginException e) catch (LoginException e)
{ {
LOG.warn(e); LOG.debug(e);
} }
catch (IOException e) catch (IOException e)
{ {
LOG.warn(e); LOG.info(e.getMessage());
LOG.debug(e);
} }
catch (UnsupportedCallbackException e) catch (UnsupportedCallbackException e)
{ {
LOG.warn(e); LOG.info(e.getMessage());
LOG.debug(e);
} }
catch (InstantiationException e) catch (InstantiationException e)
{ {
LOG.warn(e); LOG.info(e.getMessage());
LOG.debug(e);
} }
catch (IllegalAccessException e) catch (IllegalAccessException e)
{ {
LOG.warn(e); LOG.info(e.getMessage());
LOG.debug(e);
} }
catch (ClassNotFoundException e) catch (ClassNotFoundException e)
{ {
LOG.warn(e); LOG.info(e.getMessage());
LOG.debug(e);
} }
return null; return null;
} }