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: