Skip to content

Commit

Permalink
Fix log_files_metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Malikbadmus committed Jun 18, 2024
1 parent 2620f0a commit c2993d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ersilia/core/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def docker_stats(container_name=None):
return [f"An unexpected error occurred: {e}"]


def log_files_metrics(file):
def log_files_metrics(file, model_id):
"""
This function will log the number of errors and warnings in the log files.
Expand Down Expand Up @@ -217,7 +217,7 @@ def close_persistent_file(model_id):
"""
if check_file_exists(model_id):
file_name = get_persistent_file_path(model_id)
log_files_metrics(TEMP_FILE_LOGS)
log_files_metrics(TEMP_FILE_LOGS, model_id)

new_file_path = os.path.join(
os.path.dirname(file_name),
Expand Down

0 comments on commit c2993d3

Please sign in to comment.