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

@ -159,7 +159,10 @@ class Dynamic extends Object
}
else
{
Log::warning('Unable to minify ' . $original_reference . ' and a minified copy does not already exist');
if ($this->config->pickles['logging'] === true)
{
Log::warning('Unable to minify ' . $original_reference . ' and a minified copy does not already exist');
}
}
$reference = $this->reference($reference);
@ -253,7 +256,10 @@ class Dynamic extends Object
}
else
{
Log::warning('Unable to minify ' . $original_reference . ' and a minified copy does not already exist');
if ($this->config->pickles['logging'] === true)
{
Log::warning('Unable to minify ' . $original_reference . ' and a minified copy does not already exist');
}
}
$reference = $this->reference($reference);