Commit b9c79fa7 authored by David Foucher's avatar David Foucher

Fix: logging with version number for none delete logfile

parent 40c09d11
This diff is collapsed.
......@@ -15,7 +15,10 @@ request_logger = logging.getLogger("request_logger")
request_logger.setLevel(logging.INFO)
request_logger.addHandler(
logging.handlers.TimedRotatingFileHandler(
os.path.join(os.environ.get("TREFLE_LOG_DIR", "/tmp"), "trefle-simulate.log"),
os.path.join(
os.environ.get("TREFLE_LOG_DIR", "/tmp"),
"trefle-simulate-v{}.log".format(os.environ.get("TREFLE_VERSION", VERSION)),
),
when="W0",
backupCount=52,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment