From 4aca5252b9d8a5cab75b9de9cc42c1b52e767960 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 4 Nov 2011 14:24:57 +0100 Subject: [PATCH] Implemented a debug switch It is now possible to switch between debug and production, whereas the last setting will suppress any error message including file/line references and stacktraces. Furthermore errors will ALWAYS be written to a logfile, regardless if running in production or debug mode. By default debug mode is enabled for now, it MUST be set to 'production' once the software will be tossed into the wild. --- com.woltlab.wcf/option.xml | 11 ++++ com.woltlab.wcf/template/userException.tpl | 14 +++-- wcfsetup/install.php | 1 + .../files/lib/system/WCFSetup.class.php | 1 + .../system/exception/AJAXException.class.php | 22 +++++-- .../exception/LoggedException.class.php | 57 +++++++++++++++++++ .../exception/SystemException.class.php | 45 ++++++++------- .../system/exception/UserException.class.php | 9 ++- wcfsetup/install/files/options.inc.php | 3 + 9 files changed, 130 insertions(+), 33 deletions(-) create mode 100644 wcfsetup/install/files/lib/system/exception/LoggedException.class.php diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index ccbcb62f49..f696db3416 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -108,6 +108,17 @@ boolean 0 + +