From d4cca2439270f58b63f1ccab92964a112859cdc8 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sun, 16 Jul 2023 16:35:40 -0700 Subject: [PATCH] Fixed formatting of logfile --- sparkytron3000.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index c01407f..1fca1b5 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -68,7 +68,7 @@ async def upload_ftp(local_filename, server_folder, server_filename): async def handle_error(error): print(error) current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) - log_line = current_time + ': ' + str(error) + log_line = current_time + ': ' + str(error) + '\n' with open("databases/error_log.txt", 'a') as f: f.write(log_line) return error