Implemented a debug switch
authorAlexander Ebert <ebert@woltlab.com>
Fri, 4 Nov 2011 13:24:57 +0000 (14:24 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 4 Nov 2011 13:24:57 +0000 (14:24 +0100)
commit4aca5252b9d8a5cab75b9de9cc42c1b52e767960
treecf9a59f302296163408526735c51dd495e194542
parente68f4d0d170f8ffcfcfc5ede342a41953de6291c
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
com.woltlab.wcf/template/userException.tpl
wcfsetup/install.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/lib/system/exception/AJAXException.class.php
wcfsetup/install/files/lib/system/exception/LoggedException.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/exception/SystemException.class.php
wcfsetup/install/files/lib/system/exception/UserException.class.php
wcfsetup/install/files/options.inc.php