From 8983e96863aaf812f8dcdfbb7b321ff0ebc902c8 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 18 Mar 2021 11:36:07 +0100 Subject: [PATCH] switching off logging --- rowers/garmin_stuff.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/rowers/garmin_stuff.py b/rowers/garmin_stuff.py index 11329f3d..bd1f44ea 100644 --- a/rowers/garmin_stuff.py +++ b/rowers/garmin_stuff.py @@ -26,19 +26,19 @@ from rowsandall_app.settings import ( from pytz import timezone as tz, utc -try: - import http.client as http_client -except ImportError: +#try: +# import http.client as http_client +#except ImportError: # Python 2 - import httplib as http_client -http_client.HTTPConnection.debuglevel = 1 +# import httplib as http_client +#http_client.HTTPConnection.debuglevel = 1 # You must initialize logging, otherwise you'll not see debug output. -logging.basicConfig() -logging.getLogger().setLevel(logging.DEBUG) -requests_log = logging.getLogger("requests.packages.urllib3") -requests_log.setLevel(logging.DEBUG) -requests_log.propagate = True +#logging.basicConfig() +#logging.getLogger().setLevel(logging.DEBUG) +#requests_log = logging.getLogger("requests.packages.urllib3") +#requests_log.setLevel(logging.DEBUG) +#requests_log.propagate = True from rowers.tasks import handle_get_garmin_file