temporarily fix logger infinite loop

This commit is contained in:
sunxyw
2022-06-09 00:20:58 +08:00
parent 4fe74eb5fe
commit 47ffe9a2ec

View File

@@ -790,10 +790,7 @@ function is_assoc_array(array $array): bool
*/ */
function logger(string $prefix = null): LoggerInterface function logger(string $prefix = null): LoggerInterface
{ {
if (!is_null($prefix) || !app()->has(LoggerInterface::class)) { return new ZM\Logger\ConsoleLogger('info');
return zm_config('logging.logger')($prefix);
}
return resolve(LoggerInterface::class);
} }
/** /**