// If error retrieving configs, fail authentication, notify listeners
catch (GuacamoleException e) {
logger.error("Error retrieving configuration(s) for user \"{}\".",
- credentials.getUsername());
+ credentials.getUsername(), e);
notifyFailed(listeners, credentials);
failAuthentication(response);
catch (GuacamoleException e) {
// Cancel authentication success if hook throws exception
- logger.error("Successful authentication canceled by error in hook.");
+ logger.error("Successful authentication canceled by error in hook.", e);
failAuthentication(response);
return;