Fix logging in Sandstorm.

This commit is contained in:
James Cole
2017-12-08 19:35:22 +01:00
parent 80f72d9dd7
commit 6469c7f537

View File

@@ -50,8 +50,9 @@ $app->singleton(
FireflyIII\Exceptions\Handler::class
);
/* Overrule logging */
$app->configureMonologUsing(
/* Overrule logging if not Sandstorm */
if (!(env('IS_SANDSTORM') === true)) {
$app->configureMonologUsing(
function (Logger $monolog) use ($app) {
$interface = php_sapi_name();
@@ -78,7 +79,8 @@ $app->configureMonologUsing(
$handler->setFormatter($formatter);
$monolog->pushHandler($handler);
}
);
);
}
/*
|--------------------------------------------------------------------------