mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 04:46:44 +00:00
Fix logging in Sandstorm.
This commit is contained in:
@@ -50,8 +50,9 @@ $app->singleton(
|
|||||||
FireflyIII\Exceptions\Handler::class
|
FireflyIII\Exceptions\Handler::class
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Overrule logging */
|
/* Overrule logging if not Sandstorm */
|
||||||
$app->configureMonologUsing(
|
if (!(env('IS_SANDSTORM') === true)) {
|
||||||
|
$app->configureMonologUsing(
|
||||||
function (Logger $monolog) use ($app) {
|
function (Logger $monolog) use ($app) {
|
||||||
|
|
||||||
$interface = php_sapi_name();
|
$interface = php_sapi_name();
|
||||||
@@ -78,7 +79,8 @@ $app->configureMonologUsing(
|
|||||||
$handler->setFormatter($formatter);
|
$handler->setFormatter($formatter);
|
||||||
$monolog->pushHandler($handler);
|
$monolog->pushHandler($handler);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user