mirror of
https://github.com/snipe/snipe-it.git
synced 2025-10-29 11:21:21 +00:00
Allow toggle for logging deprecation warnings
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e4244d60f1
commit
934aa3da7f
@ -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
|
||||
|
||||
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user