Skip to content

Commit cd1d9d5

Browse files
committed
feat: enable logs when logger is installed
1 parent 63bc969 commit cd1d9d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ protected static function loadConfig()
142142
}
143143

144144
if (class_exists('Leaf\Log')) {
145-
$config['app'] = array_merge([
145+
$config['app'] = array_merge($config['app'] ?? [], [
146146
'log.open' => true,
147147
'log.level' => Log::DEBUG,
148-
], $config['app'] ?? []);
148+
]);
149149
}
150150

151151
app()->config($config['app']);

0 commit comments

Comments
 (0)