Skip to content

Commit

Permalink
Logging update.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Jan 20, 2025
1 parent 953d6cc commit 03ab96b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions maps4fs/generator/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ def __init__( # pylint: disable=R0917, R0915
self.map_directory = map_directory

log_entry = ""
log_entry += f"Game was set to {game.code}. "
log_entry += f"DTM provider was set to {dtm_provider.name()}. "
log_entry += f"Map instance created for Game: {game.code}. "
log_entry += f"Coordinates: {coordinates}. Size: {size}. Rotation: {rotation}. "
log_entry += f"DTM provider is {dtm_provider.name()}. "

self.custom_osm = custom_osm
log_entry += f"Custom OSM file: {custom_osm}. "
Expand Down Expand Up @@ -170,7 +171,7 @@ def generate(self) -> Generator[str, None, None]:
Yields:
Generator[str, None, None]: Component names.
"""
self.logger.info(
self.logger.debug(
"Starting map generation. Game code: %s. Coordinates: %s, size: %s. Rotation: %s.",
self.game.code,
self.coordinates,
Expand Down Expand Up @@ -215,7 +216,7 @@ def generate(self) -> Generator[str, None, None]:
)
raise e

self.logger.info(
self.logger.debug(
"Map generation completed. Game code: %s. Coordinates: %s, size: %s. Rotation: %s.",
self.game.code,
self.coordinates,
Expand Down

0 comments on commit 03ab96b

Please sign in to comment.