Skip to content

Commit

Permalink
Update log mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nehcgs committed Oct 10, 2024
1 parent 3a1b3fe commit 3138a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_server/app/commons/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_model_server_logger():
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s",
handlers=[
logging.FileHandler(log_file_path, mode="a"), # Overwrite logs in file
logging.FileHandler(log_file_path, mode="w"), # Overwrite logs in file
],
)
except (PermissionError, OSError):
Expand Down

0 comments on commit 3138a1d

Please sign in to comment.