switching off logging
This commit is contained in:
@@ -26,19 +26,19 @@ from rowsandall_app.settings import (
|
|||||||
|
|
||||||
from pytz import timezone as tz, utc
|
from pytz import timezone as tz, utc
|
||||||
|
|
||||||
try:
|
#try:
|
||||||
import http.client as http_client
|
# import http.client as http_client
|
||||||
except ImportError:
|
#except ImportError:
|
||||||
# Python 2
|
# Python 2
|
||||||
import httplib as http_client
|
# import httplib as http_client
|
||||||
http_client.HTTPConnection.debuglevel = 1
|
#http_client.HTTPConnection.debuglevel = 1
|
||||||
|
|
||||||
# You must initialize logging, otherwise you'll not see debug output.
|
# You must initialize logging, otherwise you'll not see debug output.
|
||||||
logging.basicConfig()
|
#logging.basicConfig()
|
||||||
logging.getLogger().setLevel(logging.DEBUG)
|
#logging.getLogger().setLevel(logging.DEBUG)
|
||||||
requests_log = logging.getLogger("requests.packages.urllib3")
|
#requests_log = logging.getLogger("requests.packages.urllib3")
|
||||||
requests_log.setLevel(logging.DEBUG)
|
#requests_log.setLevel(logging.DEBUG)
|
||||||
requests_log.propagate = True
|
#requests_log.propagate = True
|
||||||
|
|
||||||
|
|
||||||
from rowers.tasks import handle_get_garmin_file
|
from rowers.tasks import handle_get_garmin_file
|
||||||
|
|||||||
Reference in New Issue
Block a user