diff --git a/backend/src/landmarks/landmarks_manager.py b/backend/src/landmarks/landmarks_manager.py index 97258d8..3b36f36 100644 --- a/backend/src/landmarks/landmarks_manager.py +++ b/backend/src/landmarks/landmarks_manager.py @@ -197,7 +197,7 @@ class LandmarkManager: out = 'ids center tags' ) except Exception as e: - self.logger.warning(f"Error fetching landmarks: {str(e)}") + self.logger.debug(f"Failed to fetch landmarks, proceeding without: {str(e)}") continue return_list += self._to_landmarks(result, landmarktype, preference_level) diff --git a/backend/src/logging_config.py b/backend/src/logging_config.py index 2412787..a00302c 100644 --- a/backend/src/logging_config.py +++ b/backend/src/logging_config.py @@ -29,7 +29,7 @@ def configure_logging(): logger.info(f"Logging to Loki at {loki_url} with {loki_handler.labels} and {is_debug=}") logging_handlers = [loki_handler, logging.StreamHandler()] - logging_level = logging.DEBUG + logging_level = logging.DEBUG if is_debug else logging.INFO # silence the chatty logs loki generates itself logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING) # no need for time since it's added by loki or can be shown in kube logs @@ -39,7 +39,7 @@ def configure_logging(): # if we are in a debug (local) session, set verbose and rich logging from rich.logging import RichHandler logging_handlers = [RichHandler()] - logging_level = logging.DEBUG + logging_level = logging.DEBUG if is_debug else logging.INFO logging_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'