Skip to content

Commit 5666be0

Browse files
authored
change file name logs to debug
1 parent 038e765 commit 5666be0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bnd/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def file_name_ok(self, file_name: str) -> bool:
102102
match = re.match(self.session_name_re, file_name)
103103

104104
if not match:
105-
logger.error("file name not matching the pattern")
105+
logger.debug("file name not matching the pattern")
106106
return False # Doesn't match the expected pattern
107107

108108
# Extract the datetime parts
@@ -112,14 +112,14 @@ def file_name_ok(self, file_name: str) -> bool:
112112
try:
113113
dt = datetime(year, month, day, hour, minute)
114114
except ValueError:
115-
logger.error("Invalid datetime")
115+
logger.debug("Invalid datetime")
116116
return False
117117

118118
# Do not allow future dates
119119
if dt.date() <= datetime.today().date():
120120
return True
121121
else:
122-
logger.error("file has future date")
122+
logger.debug("file has future date")
123123
return False
124124

125125
@staticmethod

0 commit comments

Comments
 (0)