allow for no logfile
This commit is contained in:
parent
49275291e1
commit
240400439e
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ class UnknownChannel(Exception):
|
|||
|
||||
|
||||
def main_loop():
|
||||
logging.basicConfig(filename=config["LOGFILE"], level=logging.INFO, format='%(asctime)s %(message)s')
|
||||
if "LOGFILE" in config:
|
||||
logging.basicConfig(filename=config["LOGFILE"], level=logging.INFO, format='%(asctime)s %(message)s')
|
||||
logging.info(directory)
|
||||
try:
|
||||
bot.start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue