aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-11 10:38:02 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-11 10:38:02 +0100
commit2422b025d0529d2d3444a2abf9f1449df8f5662d (patch)
treedde5542152dde8d3fb274aa704b3f77a105abc90 /src/bootstrap.py
parentUpdated Python dependencies. (diff)
downloadnewspipe-2422b025d0529d2d3444a2abf9f1449df8f5662d.tar.gz
newspipe-2422b025d0529d2d3444a2abf9f1449df8f5662d.tar.bz2
newspipe-2422b025d0529d2d3444a2abf9f1449df8f5662d.zip
Simpler format for the logs when the application is running on Heroku.
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py
index 2b94b1b9..f9de381a 100644
--- a/src/bootstrap.py
+++ b/src/bootstrap.py
@@ -15,6 +15,8 @@ def set_logging(log_path=None, log_level=logging.INFO, modules=(),
if not modules:
modules = ('root', 'bootstrap', 'runserver',
'web', 'crawler.classic_crawler', 'manager', 'plugins')
+ if conf.ON_HEROKU:
+ log_format = '%(levelname)s %(message)s'
if log_path:
handler = logging.FileHandler(log_path)
else:
bgstack15