From 6119f21815e0fe00db04caff4272344fa10da0de Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Thu, 16 Apr 2015 17:28:37 +0200 Subject: facto on config and more option in log levels --- runserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runserver.py') diff --git a/runserver.py b/runserver.py index a80b0c39..5f20ddd4 100755 --- a/runserver.py +++ b/runserver.py @@ -18,6 +18,7 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import logging import calendar from bootstrap import conf, application, populate_g from flask.ext.babel import Babel @@ -55,4 +56,4 @@ with application.app_context(): if __name__ == '__main__': application.run(host=conf.WEBSERVER_HOST, port=conf.WEBSERVER_PORT, - debug=conf.WEBSERVER_DEBUG) + debug=conf.LOG_LEVEL <= logging.DEBUG) -- cgit