diff --git a/__main__.py b/__main__.py index 36e6ef2..8a2dc07 100644 --- a/__main__.py +++ b/__main__.py @@ -11,7 +11,7 @@ import logging def main(): args = parseCommandLine() - logging.basicConfig(filename='log.txt', level=logging.INFO) + logging.basicConfig(filename='log.txt', level=config.LOG_LEVEL) game = createGame(args) asyncio.run(game.run()) diff --git a/config.py b/config.py index 0ea99cb..5b8eef9 100644 --- a/config.py +++ b/config.py @@ -1,3 +1,4 @@ +import logging import os from events.SpecialEvent import SpecialEvent from enum import Enum @@ -26,6 +27,7 @@ RED_SPECIAL_TIMES = 1 ORANGE_SPECIAL = SpecialEvent.points ORANGE_SPECIAL_BANK = ORANGE_SPECIAL_BANK_OPTIONS["BOTH"] ## Tech config +LOG_LEVEL=logging.DEBUG WAIT_TIME_TO_RESET_SECONDS = 0.15 MAX_NETWORK_RETRIES = 10 NETWORK_SLEEP_TIME_SECONDS = 0.1