Skip to content

Commit

Permalink
Logger overwrites not appends to output file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant1 authored Nov 16, 2024
1 parent 7fe1964 commit ec9b5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def static_munge(prefix, implementations):
if debug_flag:
logging.basicConfig(
filename='logger.txt', # Name of the log file
filemode='a', # Append mode ('w' for overwrite)
filemode='w', # Append mode ('w' for overwrite)
format='%(asctime)s - %(levelname)s - %(message)s', # Log message format
level=logging.INFO # Minimum log level to capture
)
Expand Down Expand Up @@ -447,4 +447,4 @@ def get(project_name = "Project"):
DSI database
'''
True


0 comments on commit ec9b5a0

Please sign in to comment.