Chore: fix sonarcube logger warnings

This commit is contained in:
shamoon
2026-05-20 08:32:36 -07:00
parent df861189fa
commit 15682231b2
5 changed files with 7 additions and 7 deletions
@@ -44,7 +44,7 @@ def _discover_parser_class() -> type[DateParserPluginBase]:
else:
logger.warning(f"Plugin {ep.name} does not subclass DateParser.")
except Exception as e:
logger.error(f"Unable to load date parser plugin {ep.name}: {e}")
logger.exception(f"Unable to load date parser plugin {ep.name}: {e}")
if not valid_plugins:
return RegexDateParserPlugin
+1 -1
View File
@@ -92,7 +92,7 @@ class DateParserPluginBase(ABC):
locales=self.config.languages,
)
except Exception as e:
logger.error(f"Error while parsing date string '{date_string}': {e}")
logger.exception(f"Error while parsing date string '{date_string}': {e}")
return None
def _filter_date(