Skip to content
Snippets Groups Projects
Commit 3321c9a8 authored by Demian Katz's avatar Demian Katz
Browse files

Added error logging for unexpected exceptions.

- Thanks to Tod Olson!
parent bd362fa2
No related merge requests found
......@@ -463,7 +463,12 @@ class Manager implements ServiceLocatorAwareInterface
// Pass password security exceptions through unmodified
throw $e;
} catch (\Exception $e) {
// Catch other exceptions and treat them as technical difficulties
// Catch other exceptions, log verbosely, and treat them as technical
// difficulties
error_log(
"Exception in " . get_class($this) . "::login: " . $e->getMessage()
);
error_log($e);
throw new AuthException('authentication_error_technical');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment