diff --git a/api/ovdashboard_api/config.py b/api/ovdashboard_api/config.py index 433093f..0f5229e 100644 --- a/api/ovdashboard_api/config.py +++ b/api/ovdashboard_api/config.py @@ -73,7 +73,7 @@ class Config(BaseModel): ) except RemoteResourceNotFound: - _logger.warn( + _logger.warning( f"Config file {SETTINGS.config_path!r} not found, creating ..." ) diff --git a/api/ovdashboard_api/dav_calendar.py b/api/ovdashboard_api/dav_calendar.py index 7b60825..6a8299d 100644 --- a/api/ovdashboard_api/dav_calendar.py +++ b/api/ovdashboard_api/dav_calendar.py @@ -148,7 +148,7 @@ async def _get_calendar_events( ) except ReportError: - _logger.warn("CalDAV server does not support expanded search") + _logger.warning("CalDAV server does not support expanded search") search_result = calendar.date_search( start=dt_start,