style(classifier): 🎨 improve if statements
This commit is contained in:
@@ -92,16 +92,16 @@ def classify_log_entries(
|
||||
previous_log_entry, log_entry
|
||||
):
|
||||
logger.info(
|
||||
f"\t\tduplicated log entry ignored: '{log_entry.error_message}'"
|
||||
f"\t\tDuplicated log entry ignored: '{log_entry.error_message}'"
|
||||
)
|
||||
continue
|
||||
|
||||
if error_name:
|
||||
if log_entry.error_name:
|
||||
logger.info(
|
||||
f"\t\tError '{error_name}' associated with log entry '{log_entry.error_message}'. This is a n2 log entry"
|
||||
)
|
||||
relevant_log_entries.append(log_entry)
|
||||
if not error_name:
|
||||
else:
|
||||
irrelevant_log_entries.append(log_entry)
|
||||
previous_log_entry = log_entry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user