add log level
This commit is contained in:
@@ -11,7 +11,7 @@ import logging
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parseCommandLine()
|
args = parseCommandLine()
|
||||||
logging.basicConfig(filename='log.txt', level=logging.INFO)
|
logging.basicConfig(filename='log.txt', level=config.LOG_LEVEL)
|
||||||
game = createGame(args)
|
game = createGame(args)
|
||||||
asyncio.run(game.run())
|
asyncio.run(game.run())
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
from events.SpecialEvent import SpecialEvent
|
from events.SpecialEvent import SpecialEvent
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
@@ -26,6 +27,7 @@ RED_SPECIAL_TIMES = 1
|
|||||||
ORANGE_SPECIAL = SpecialEvent.points
|
ORANGE_SPECIAL = SpecialEvent.points
|
||||||
ORANGE_SPECIAL_BANK = ORANGE_SPECIAL_BANK_OPTIONS["BOTH"]
|
ORANGE_SPECIAL_BANK = ORANGE_SPECIAL_BANK_OPTIONS["BOTH"]
|
||||||
## Tech config
|
## Tech config
|
||||||
|
LOG_LEVEL=logging.DEBUG
|
||||||
WAIT_TIME_TO_RESET_SECONDS = 0.15
|
WAIT_TIME_TO_RESET_SECONDS = 0.15
|
||||||
MAX_NETWORK_RETRIES = 10
|
MAX_NETWORK_RETRIES = 10
|
||||||
NETWORK_SLEEP_TIME_SECONDS = 0.1
|
NETWORK_SLEEP_TIME_SECONDS = 0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user