From 9bde576a7c7ea80fa3ff1e19b7c26d23cb0e3def Mon Sep 17 00:00:00 2001 From: Starlii10 Date: Fri, 20 Sep 2024 09:41:54 -0400 Subject: [PATCH] Except that colons aren't allowed because Windows --- extras/viviatools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extras/viviatools.py b/extras/viviatools.py index 91d3071..2790249 100644 --- a/extras/viviatools.py +++ b/extras/viviatools.py @@ -20,7 +20,6 @@ import random import sys import colorlog - import discord if __name__ == "__main__": @@ -73,7 +72,7 @@ logger.setLevel(logging.INFO) # File logging -handler = logging.FileHandler(f'data/logs/{datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")}.log') +handler = logging.FileHandler(f'data/logs/{datetime.datetime.now().strftime("%Y-%m-%d %H-%M-%S")}.log') handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s\t %(message)s')) logger.addHandler(handler)