diff options
| author | Andrew <saintruler@gmail.com> | 2019-06-03 21:28:50 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2019-06-03 21:28:50 +0400 |
| commit | 18617fd71708222fed455aac1d7d826d63ee3804 (patch) | |
| tree | 489793d17507e8a313b45225ea80ac40d19789d3 /day7/http_handler.py | |
| parent | d31296d87f86ca817b6d7c41c46bc83fe403a093 (diff) | |
Исправил некоторые недочеты, обновил README.md
Diffstat (limited to 'day7/http_handler.py')
| -rw-r--r-- | day7/http_handler.py | 5 |
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] |