From f0a33585612a1dac462aac59d06d699fdd4f4456 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 3 Dec 2012 13:11:08 +0100 Subject: [PATCH] Use debug for Tornado errors --- couchpotato/runner.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 973ac88b..9da584bb 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -4,10 +4,8 @@ from couchpotato.api import api, NonBlockHandler from couchpotato.core.event import fireEventAsync, fireEvent from couchpotato.core.helpers.variable import getDataDir, tryInt from logging import handlers -from tornado import autoreload -from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop -from tornado.web import RequestHandler, Application, FallbackHandler +from tornado.web import Application, FallbackHandler from tornado.wsgi import WSGIContainer from werkzeug.contrib.cache import FileSystemCache import locale @@ -57,10 +55,8 @@ def _log(status_code, request): if status_code < 400: return - elif status_code < 500: - log_method = logging.warning else: - log_method = logging.error + log_method = logging.debug request_time = 1000.0 * request.request_time() summary = request.method + " " + request.uri + " (" + \ request.remote_ip + ")"