aboutsummaryrefslogtreecommitdiff
path: root/runserver.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-04-16 17:28:37 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-04-16 17:28:37 +0200
commit6119f21815e0fe00db04caff4272344fa10da0de (patch)
tree1f5aad5dd88763f791c7d27a16ed44d1684f229d /runserver.py
parentmisc bugfix (dict should be set at load time) and var renaming (diff)
downloadnewspipe-6119f21815e0fe00db04caff4272344fa10da0de.tar.gz
newspipe-6119f21815e0fe00db04caff4272344fa10da0de.tar.bz2
newspipe-6119f21815e0fe00db04caff4272344fa10da0de.zip
facto on config and more option in log levels
Diffstat (limited to 'runserver.py')
-rwxr-xr-xrunserver.py3
1 files changed, 2 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
+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)
bgstack15