From 1b4ab1f3c282cc4e02de777d2e84e58052958dc6 Mon Sep 17 00:00:00 2001 From: justin-richling Date: Thu, 20 Jun 2024 13:30:24 -0600 Subject: [PATCH] Update adf_base.py --- lib/adf_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/adf_base.py b/lib/adf_base.py index 0121ba53e..b028f21bd 100644 --- a/lib/adf_base.py +++ b/lib/adf_base.py @@ -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)