Update settings log level
This commit is contained in:
parent
00cc36246f
commit
27b1f3170b
|
@ -16,7 +16,7 @@ class Options
|
||||||
|
|
||||||
if (is_null($value))
|
if (is_null($value))
|
||||||
{
|
{
|
||||||
Log::info('Option ' . $option . 'not found in cache, refreshing from database');
|
Log::debug('Option ' . $option . 'not found in cache, refreshing from database');
|
||||||
$value = Option::where('option_name', $option)->first();
|
$value = Option::where('option_name', $option)->first();
|
||||||
if (is_null($value))
|
if (is_null($value))
|
||||||
throw new \Exception('This option does not exist.');
|
throw new \Exception('This option does not exist.');
|
||||||
|
@ -61,7 +61,7 @@ class Options
|
||||||
$dbOptionInstance = Option::find($dbOption->first()->id);
|
$dbOptionInstance = Option::find($dbOption->first()->id);
|
||||||
Cache::forget($option);
|
Cache::forget($option);
|
||||||
|
|
||||||
Log::warning('Changing db configuration option', [
|
Log::debug('Changing db configuration option', [
|
||||||
'old_value' => $dbOptionInstance->option_value,
|
'old_value' => $dbOptionInstance->option_value,
|
||||||
'new_value' => $newValue
|
'new_value' => $newValue
|
||||||
]);
|
]);
|
||||||
|
@ -69,7 +69,7 @@ class Options
|
||||||
$dbOptionInstance->option_value = $newValue;
|
$dbOptionInstance->option_value = $newValue;
|
||||||
$dbOptionInstance->save();
|
$dbOptionInstance->save();
|
||||||
|
|
||||||
Log::warning('New db configuration option saved',
|
Log::debug('New db configuration option saved',
|
||||||
[
|
[
|
||||||
'option' => $dbOptionInstance->option_value
|
'option' => $dbOptionInstance->option_value
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue