This commit is contained in:
2020-09-07 16:55:46 +08:00
parent a4568299e5
commit cc355dad78
+1 -1
View File
@@ -112,7 +112,7 @@ class Logger extends Component
{ {
$debug = (bool)Config::get('debug', false, ['enable' => false]); $debug = (bool)Config::get('debug', false, ['enable' => false]);
if ($debug['enable'] === true) { if ($debug['enable'] === true) {
if (!is_callable($debug['callback'], true)) { if (!is_callable($debug['callback'] ?? null, true)) {
return; return;
} }
call_user_func($debug['callback'], $message, $category); call_user_func($debug['callback'], $message, $category);