debug = false not worked as expected
swimitup opened this issue · comments
Code
app()->config(['debug' => false]);
will not work either.
It seems the "debug" variable is not controlled by the Config::static:$settings array, but from within the /config/app.php script:
But still if you define the variable afterwards, in _app.php script, it will not work:
Leaf\Config::set([
"views.path" => "views",
"views.cachePath" => "views/cache",
'log.style' => 'linux',
'log.enabled' => true,
'log.dir' => __DIR__ . '/../../storage/logs/',
'log.file' => 'uc-api-'.date('Y-m-d').'.log',
'debug' => false,
]);
I'll take a look at this
@swimitup This has been fixed in Leaf's new release. You can run composer update
in your project to get rid of this error.