summaryrefslogtreecommitdiff
path: root/day7/http_handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'day7/http_handler.py')
-rw-r--r--day7/http_handler.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/day7/http_handler.py b/day7/http_handler.py
index 7f64f95..8344d7f 100644
--- a/day7/http_handler.py
+++ b/day7/http_handler.py
@@ -17,10 +17,7 @@ logging.basicConfig(filename=db.get_config_entry('log_path'), level=logging.INFO
def log_requests(func):
- def wrapper(*args, **kwargs):
- address = kwargs['address'] if 'address' in kwargs else args[0]
- request = kwargs['request'] if 'request' in kwargs else args[1]
-
+ def wrapper(address, request, *args, **kwargs):
response = func(*args, **kwargs)
status = response.split('\n').pop(0).split()[1]