From 400353f93922bfe15f0bccbb16a92c74e38daaeb Mon Sep 17 00:00:00 2001 From: ChenxiYuan Date: Wed, 7 Feb 2018 17:21:55 -0500 Subject: [PATCH] auto push --- http_log_watcher/http_log_process.py | 2 +- http_log_watcher/log_watcher.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/http_log_watcher/http_log_process.py b/http_log_watcher/http_log_process.py index 03e8a4d..82bcedd 100644 --- a/http_log_watcher/http_log_process.py +++ b/http_log_watcher/http_log_process.py @@ -44,7 +44,7 @@ def process_http_log(file_path, line_number_should_skipped): # skip the processed_lines for line in f: line_count += 1 - if line_number_should_skipped == 0 or line_count <= line_number_should_skipped: + if line_count <= line_number_should_skipped: continue words = line.split() diff --git a/http_log_watcher/log_watcher.py b/http_log_watcher/log_watcher.py index eda7e31..7217922 100644 --- a/http_log_watcher/log_watcher.py +++ b/http_log_watcher/log_watcher.py @@ -77,7 +77,6 @@ def run_processing_log_files_of_all_directories(db): if len(http_log_list) == 0: continue - print(http_log_list) # http_data_dict[date_string] = http_log_list requests.post(get_log_file_uri(mac_address, date_string, request_type), json=http_log_list) else: