better logs
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 1m40s
Run linting on the backend code / Build (pull_request) Successful in 55s
Run testing on the backend code / Build (pull_request) Has been cancelled
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 25s

This commit is contained in:
2025-02-20 19:11:23 +01:00
parent 5e27dd9d79
commit 5a2c61d343
7 changed files with 21 additions and 13 deletions

View File

@@ -103,7 +103,7 @@ class ClusterManager:
out = out
)
except Exception as e:
self.logger.error(f"Error fetching clusters: {e}")
self.logger.warning(f"Error fetching clusters: {e}")
if result is None :
self.logger.debug(f"Found no {cluster_type} clusters, overpass query returned no datapoints.")
@@ -242,11 +242,11 @@ class ClusterManager:
out = 'ids center tags'
)
except Exception as e:
self.logger.error(f"Error fetching clusters: {e}")
self.logger.warning(f"Error fetching clusters: {e}")
continue
if result is None :
self.logger.error(f"Error fetching clusters: {e}")
self.logger.warning(f"Error fetching clusters: query result is None")
continue
for elem in result:

View File

@@ -197,7 +197,7 @@ class LandmarkManager:
out = 'ids center tags'
)
except Exception as e:
self.logger.error(f"Error fetching landmarks: {str(e)}")
self.logger.warning(f"Error fetching landmarks: {str(e)}")
continue
return_list += self._to_landmarks(result, landmarktype, preference_level)