mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Do not overrule logging when it’s not set to daily.
This commit is contained in:
@@ -2,7 +2,7 @@ APP_ENV=local
|
||||
APP_DEBUG=true
|
||||
APP_NAME=FireflyIII
|
||||
APP_KEY=7ahyYVPVsmxjdhsweWCauGeJfwc92NP2
|
||||
APP_LOG=syslog
|
||||
APP_LOG=errorlog
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://localhost
|
||||
TRUSTED_PROXIES=
|
||||
|
@@ -51,8 +51,10 @@ $app->singleton(
|
||||
);
|
||||
|
||||
/* Overrule logging */
|
||||
if ($app->make('config')->get('app.log') === 'daily') {
|
||||
$app->configureMonologUsing(
|
||||
function (Logger $monolog) use ($app) {
|
||||
|
||||
$interface = php_sapi_name();
|
||||
$path = $app->storagePath() . '/logs/ff3-' . $interface . '.log';
|
||||
$level = 'debug';
|
||||
@@ -78,6 +80,7 @@ $app->configureMonologUsing(
|
||||
$monolog->pushHandler($handler);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user