evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ca / calibre-web / default-logger.patch
blobc5aecbd3d10cc522c79addf5e0073b1347b485de
1 diff --git a/cps/logger.py b/cps/logger.py
2 index b204de31..3206e2bf 100644
3 --- a/cps/logger.py
4 +++ b/cps/logger.py
5 @@ -32,10 +32,10 @@ ACCESS_FORMATTER_TORNADO = Formatter("[%(asctime)s] %(message)s")
7 FORMATTER = Formatter("[%(asctime)s] %(levelname)5s {%(name)s:%(lineno)d} %(message)s")
8 DEFAULT_LOG_LEVEL = logging.INFO
9 -DEFAULT_LOG_FILE = os.path.join(_CONFIG_DIR, "calibre-web.log")
10 -DEFAULT_ACCESS_LOG = os.path.join(_CONFIG_DIR, "access.log")
11 LOG_TO_STDERR = '/dev/stderr'
12 LOG_TO_STDOUT = '/dev/stdout'
13 +DEFAULT_LOG_FILE = LOG_TO_STDOUT
14 +DEFAULT_ACCESS_LOG = LOG_TO_STDOUT
16 logging.addLevelName(logging.WARNING, "WARN")
17 logging.addLevelName(logging.CRITICAL, "CRIT")