From 5391a6ce44f3d6e6631ab37b4afb05cb75b9c785 Mon Sep 17 00:00:00 2001 From: Ron Gebauer Date: Wed, 17 Jan 2018 10:56:37 +0100 Subject: [PATCH] Fix syntax error Between host and url the `',` was missing --- logging_course/lesson4/task4/http_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logging_course/lesson4/task4/http_handler.py b/logging_course/lesson4/task4/http_handler.py index ffca876..10a4f51 100644 --- a/logging_course/lesson4/task4/http_handler.py +++ b/logging_course/lesson4/task4/http_handler.py @@ -38,7 +38,8 @@ def get_monthly_payment(principal, years): fmt = logging.Formatter('%(asctime)s %(levelname)s %(message)s') file_handler.setFormatter(fmt) - http_handler = logging.handlers.HTTPHandler(host='127.0.0.1127.0.0.1:8080 url='/', + http_handler = logging.handlers.HTTPHandler(host='127.0.0.1127.0.0.1:8080', + url='/', method='GET') root_logger = logging.getLogger()