Skip to content

Commit

Permalink
Update adf_base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-richling committed Jun 20, 2024
1 parent 998d78d commit 1b4ab1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/adf_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __init__(self, debug = False):
from datetime import datetime
# Get the current date and time
current_timestamp = datetime.now()
ext = f'{str(current_timestamp).replace(" ","-")}'
# Format the datetime object to a string without microseconds
dt_str = current_timestamp.strftime('%Y-%m-%d %H:%M:%S')
ext = f'{str(dt_str).replace(" ","-")}'
debug_fname = f"ADF_debug_{ext}.log"
self.__debug_fname = debug_fname
logging.basicConfig(filename=debug_fname, level=logging.DEBUG)
Expand Down

0 comments on commit 1b4ab1f

Please sign in to comment.