diff options
author | 2018-06-06 21:02:26 +0100 | |
---|---|---|
committer | 2018-06-06 21:02:26 +0100 | |
commit | 813816f8e4f4da62c6fddb6ce16ba5a0b45bdeba (patch) | |
tree | 3bf1feda9ec847c18d88c377b5e0dbdb85aba8c9 /pysite/logs.py | |
parent | [CI] Tag builds with "docker" (diff) |
Logging changes
* Log to .json file in debug mode, with textual stdout
* Log to .txt in production, with JSON stdout
* No more Papertrail
Diffstat (limited to '')
-rw-r--r-- | pysite/logs.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pysite/logs.py b/pysite/logs.py deleted file mode 100644 index e789b1ea..00000000 --- a/pysite/logs.py +++ /dev/null @@ -1,10 +0,0 @@ -from logging.handlers import SocketHandler - - -class NonPicklingSocketHandler(SocketHandler): - def emit(self, record): - try: - s = self.formatter.format(record).encode() + b"\n" - self.send(s) - except Exception: - self.handleError(record) |