Skip to content
Snippets Groups Projects
Commit 96e4ee17 authored by Olav Morken's avatar Olav Morken
Browse files

Utilities::fatalError: Log exception backtrace.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2094 44740490-163a-0410-bde0-09ae8108e29a
parent 6d91d674
No related branches found
No related tags found
No related merge requests found
......@@ -587,6 +587,13 @@ class SimpleSAML_Utilities {
// Log a error message
SimpleSAML_Logger::error($_SERVER['PHP_SELF'].' - UserError: ErrCode:' . $error . ': ' . urlencode($emsg) );
if (!empty($e)) {
SimpleSAML_Logger::error('Exception: ' . get_class($e));
SimpleSAML_Logger::error('Backtrace:');
foreach (explode("\n", $etrace) as $line) {
SimpleSAML_Logger::error($line);
}
}
$languagefile = null;
if (isset($errorcode)) $languagefile = 'errors';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment