Windows file names can't have colons in them.
This commit is contained in:
committed by
GitHub
parent
ba1ed316d9
commit
bcd51f292b
@@ -71,7 +71,7 @@ class TwitchChannelPointsMiner:
|
||||
Path(logs_path).mkdir(parents=True, exist_ok=True)
|
||||
self.logs_file = os.path.join(
|
||||
logs_path,
|
||||
f"{username}.{datetime.now().strftime('%d-%m-%Y-%H:%M:%S')}.log",
|
||||
f"{username}.{datetime.now().strftime('%d%m%Y-%H%M%S')}.log",
|
||||
)
|
||||
file_handler = logging.FileHandler(self.logs_file)
|
||||
file_handler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - [%(funcName)s]: %(message)s"))
|
||||
|
||||
Reference in New Issue
Block a user