Added configuration variable to disable logging. Currently it is a boolean value, but eventually it will probably be broken out into an array with key/value pairs to correspond with the different logging options within the PICKLES core.

This commit is contained in:
Josh Sherman 2011-06-15 21:13:28 -04:00
parent 7fba0d231d
commit 3a89586eb1
6 changed files with 66 additions and 26 deletions

View file

@ -32,11 +32,13 @@ class Error
*/
public static function fatal($message)
{
if (Log::error($message) == false)
if ($this->config->pickles['logging'] === true)
{
$message .= '<br /><br />This error message could not be logged as the log path or log file is not writable';
if (Log::error($message) == false)
{
$message .= '<br /><br />This error message could not be logged as the log path or log file is not writable';
}
}
?>
<!DOCTYPE html>
<html>