Commit 104f87e3 authored by David Foucher's avatar David Foucher

Merge branch 'gunicorn-log' into 'master'

simplify trefle log

See merge request ybon/trefle!162
parents f2401ea7 11a7c9d6
Pipeline #2899 failed with stage
in 1 minute and 48 seconds
......@@ -9,7 +9,7 @@ def is_pkg(line):
with Path("requirements.txt").open() as reqs:
install_requires = [l for l in reqs.read().split("\n") if is_pkg(l)]
VERSION = (0, 7, 13)
VERSION = (0, 7, 14)
__author__ = "Yohan Boniface"
__contact__ = "yohan.boniface@data.gouv.fr"
......
......@@ -136,7 +136,6 @@ class Financement(SmartDict):
"remuneration_texte",
"prise_en_charge_texte",
]:
print(self)
setattr(self, key, (getattr(self, key) or "").format(**self))
......
from datetime import datetime
import logging
import logging.handlers
import os
import ujson as json
......@@ -14,13 +13,11 @@ logger.addHandler(logging.StreamHandler())
request_logger = logging.getLogger("request_logger")
request_logger.setLevel(logging.INFO)
request_logger.addHandler(
logging.handlers.TimedRotatingFileHandler(
logging.FileHandler(
os.path.join(
os.environ.get("TREFLE_LOG_DIR", "/tmp"),
"trefle-simulate.log",
),
when="D",
backupCount=365,
)
)
......
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