Update the logger to log timestamps
This commit is contained in:
parent
f78616a34d
commit
aa955816f9
@ -10,7 +10,10 @@ class TokenBot:
|
||||
def __init__(self):
|
||||
load_dotenv()
|
||||
print("#### WoW Token Bot Startup ####")
|
||||
logging.basicConfig()
|
||||
logging.basicConfig(
|
||||
format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s',
|
||||
datefmt='%Y-%m-%d %H:%M:%S',
|
||||
)
|
||||
log = logging.getLogger("TokenBotLogger")
|
||||
log.setLevel(logging.INFO)
|
||||
self.bot = Client(
|
||||
|
Loading…
Reference in New Issue
Block a user