From 44c0ddbdaabf25b20a95f6284747b84f4bb86aa1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 24 Apr 2013 18:59:11 +0200 Subject: [PATCH] Reflect changes to ExceptionLog in 3536d2fe3861c5da467bbff4ff42efb24c9ad9c3 --- wcfsetup/install/files/acp/templates/exceptionLogView.tpl | 4 ++++ .../install/files/lib/acp/page/ExceptionLogViewPage.class.php | 1 + .../files/lib/system/exception/LoggedException.class.php | 1 + 3 files changed, 6 insertions(+) diff --git a/wcfsetup/install/files/acp/templates/exceptionLogView.tpl b/wcfsetup/install/files/acp/templates/exceptionLogView.tpl index 4c7517ee5b..bcfbd399b6 100644 --- a/wcfsetup/install/files/acp/templates/exceptionLogView.tpl +++ b/wcfsetup/install/files/acp/templates/exceptionLogView.tpl @@ -99,6 +99,10 @@
{lang}wcf.acp.exceptionLog.exception.referrer{/lang}
{$exception[referrer]}
+
+
{lang}wcf.acp.exceptionLog.exception.userAgent{/lang}
+
{$exception[userAgent]}
+
{lang}wcf.acp.exceptionLog.exception.stacktrace{/lang}
diff --git a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php index bbe0f88126..7c0547dcdd 100644 --- a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php @@ -126,6 +126,7 @@ PHP version: (?.*?) WCF version: (?.*?) Request URI: (?.*?) Referrer: (?.*?) +User-Agent: (?.*?) Stacktrace: (?.*)', Regex::DOT_ALL); $stackTraceFormatter = new Regex('^\s+(#\d+)', Regex::MULTILINE); diff --git a/wcfsetup/install/files/lib/system/exception/LoggedException.class.php b/wcfsetup/install/files/lib/system/exception/LoggedException.class.php index 21d1682de1..6b1bc07bd7 100644 --- a/wcfsetup/install/files/lib/system/exception/LoggedException.class.php +++ b/wcfsetup/install/files/lib/system/exception/LoggedException.class.php @@ -79,6 +79,7 @@ class LoggedException extends \Exception { $e = ($this->getPrevious() ?: $this); + // don't forget to update ExceptionLogViewPage, when changing the log file format $message = date('r', TIME_NOW)."\n". 'Message: '.$e->getMessage()."\n". 'File: '.$e->getFile().' ('.$e->getLine().")\n". -- 2.20.1