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

@ -119,7 +119,10 @@ class Controller extends Object
}
else
{
Log::warning('Class named ' . $module_class . ' was not found in ' . $module_filename);
if ($this->config->pickles['logging'] === true)
{
Log::warning('Class named ' . $module_class . ' was not found in ' . $module_filename);
}
}
}