mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Include exceptions in logger errors.
This commit is contained in:
@@ -218,7 +218,7 @@ public abstract class AuthenticatingHttpServlet extends HttpServlet {
|
|||||||
// If error retrieving configs, fail authentication, notify listeners
|
// If error retrieving configs, fail authentication, notify listeners
|
||||||
catch (GuacamoleException e) {
|
catch (GuacamoleException e) {
|
||||||
logger.error("Error retrieving configuration(s) for user \"{}\".",
|
logger.error("Error retrieving configuration(s) for user \"{}\".",
|
||||||
credentials.getUsername());
|
credentials.getUsername(), e);
|
||||||
|
|
||||||
notifyFailed(listeners, credentials);
|
notifyFailed(listeners, credentials);
|
||||||
failAuthentication(response);
|
failAuthentication(response);
|
||||||
@@ -255,7 +255,7 @@ public abstract class AuthenticatingHttpServlet extends HttpServlet {
|
|||||||
catch (GuacamoleException e) {
|
catch (GuacamoleException e) {
|
||||||
|
|
||||||
// Cancel authentication success if hook throws exception
|
// 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);
|
failAuthentication(response);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user