mirror of https://github.com/veops/cmdb.git
feat: Handle '/dev/stdout' in Logger Configuration
This commit is contained in:
parent
86fbd62048
commit
f1350a2940
|
@ -192,6 +192,7 @@ def configure_logger(app):
|
||||||
app.logger.addHandler(handler)
|
app.logger.addHandler(handler)
|
||||||
|
|
||||||
log_file = app.config['LOG_PATH']
|
log_file = app.config['LOG_PATH']
|
||||||
|
if log_file and log_file != "/dev/stdout":
|
||||||
file_handler = RotatingFileHandler(log_file,
|
file_handler = RotatingFileHandler(log_file,
|
||||||
maxBytes=2 ** 30,
|
maxBytes=2 ** 30,
|
||||||
backupCount=7)
|
backupCount=7)
|
||||||
|
|
Loading…
Reference in New Issue