Kirk Trombley 4 жил өмнө
parent
commit
11a580fab1

+ 2 - 2
server/app/point_gen/shared.py

@@ -74,7 +74,7 @@ class CachedGeoPointSource(GeoPointSource):
         """
         n = n if n is not None else self.stock_target - len(self.stock)
         if n > 0:
-            logger.info(f"Restocking {type(self).__name__} with {n} points")
+            logger.info(f"Restocking {self.get_name()} with {n} points")
             try:
                 pts = self.source.get_points(n)
             except ExhaustedSourceError as e:
@@ -85,7 +85,7 @@ class CachedGeoPointSource(GeoPointSource):
                 # if implementations of source.get_points are well behaved, this will
                 # never actually need to recurse to finish the job.
                 self.restock(n=diff)
-            logger.info(f"Finished restocking {type(self).__name__}")
+            logger.info(f"Finished restocking {self.get_name()}")
 
     def get_points(self, n: int) -> List[Tuple[str, float, float]]:
         """