Improve logging

This commit is contained in:
JonShard
2026-08-11 10:34:47 +02:00
parent 3ae1e089aa
commit 4bfb72d749
21 changed files with 79 additions and 74 deletions
+3 -3
View File
@@ -238,7 +238,7 @@ func get_random_meal() -> String:
func get_random_side() -> String:
SweetLogger.debug("get_random_side()", [])
SweetLogger.debug("get_random_side()")
if sides_in_play.size() == 0:
push_error("GameManager: get_random_side() called but sides_in_play is empty")
return ""
@@ -248,11 +248,11 @@ func get_random_side() -> String:
func _restart():
SweetLogger.info("restart Game", [])
SweetLogger.info("restart Game")
game_state = GameState.RUNNING
func game_over():
SweetLogger.info("Game Over", [])
SweetLogger.info("Game Over")
game_state = GameState.GAME_OVER
Signals.game_over.emit()