mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 02:52:44 +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_DEBUG=true
|
||||||
APP_NAME=FireflyIII
|
APP_NAME=FireflyIII
|
||||||
APP_KEY=7ahyYVPVsmxjdhsweWCauGeJfwc92NP2
|
APP_KEY=7ahyYVPVsmxjdhsweWCauGeJfwc92NP2
|
||||||
APP_LOG=syslog
|
APP_LOG=errorlog
|
||||||
APP_LOG_LEVEL=debug
|
APP_LOG_LEVEL=debug
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
TRUSTED_PROXIES=
|
TRUSTED_PROXIES=
|
||||||
|
@@ -51,8 +51,10 @@ $app->singleton(
|
|||||||
);
|
);
|
||||||
|
|
||||||
/* Overrule logging */
|
/* Overrule logging */
|
||||||
|
if ($app->make('config')->get('app.log') === 'daily') {
|
||||||
$app->configureMonologUsing(
|
$app->configureMonologUsing(
|
||||||
function (Logger $monolog) use ($app) {
|
function (Logger $monolog) use ($app) {
|
||||||
|
|
||||||
$interface = php_sapi_name();
|
$interface = php_sapi_name();
|
||||||
$path = $app->storagePath() . '/logs/ff3-' . $interface . '.log';
|
$path = $app->storagePath() . '/logs/ff3-' . $interface . '.log';
|
||||||
$level = 'debug';
|
$level = 'debug';
|
||||||
@@ -78,6 +80,7 @@ $app->configureMonologUsing(
|
|||||||
$monolog->pushHandler($handler);
|
$monolog->pushHandler($handler);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user