Allow toggle for logging deprecation warnings

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-04-16 14:25:51 +01:00
parent e4244d60f1
commit 934aa3da7f
2 changed files with 7 additions and 0 deletions

View file

@ -179,6 +179,7 @@ PASSWORD_RESET_MAX_ATTEMPTS_PER_MIN=50
# OPTIONAL: MISC
# --------------------------------------------
LOG_CHANNEL=single
LOG_DEPRECATIONS=false
LOG_MAX_DAYS=10
APP_LOCKED=false
APP_CIPHER=AES-256-CBC

View file

@ -140,5 +140,11 @@ if ((env('APP_ENV')=='production') && (env('ROLLBAR_TOKEN'))) {
}
if (env('LOG_DEPRECATIONS')=='true') {
$config['channels']['deprecations'] = [
'driver' => 'single',
'path' => storage_path('logs/deprecations.log')
];
}
return $config;