mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Set logging location in config
This commit is contained in:
parent
600627d2e2
commit
71b29cd75d
@ -9,6 +9,7 @@ import sys
|
||||
import logging
|
||||
import json
|
||||
logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
||||
handler = logging.FileHandler(config.get("logging-location", "titanbot.log"))
|
||||
logging.getLogger('TitanBot')
|
||||
logging.getLogger('sqlalchemy')
|
||||
|
||||
@ -265,4 +266,4 @@ class Titan(discord.Client):
|
||||
for msg in self.messages:
|
||||
if msg.id == msg_id:
|
||||
return True
|
||||
return False
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user