add log level

This commit is contained in:
Jonas Zeunert
2022-08-30 18:15:57 +02:00
parent a89f435313
commit 845ccd2eb7
2 changed files with 3 additions and 1 deletions

View File

@@ -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())

View File

@@ -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