From 7dcc0e05f743d471f5dd43e6361d25cac53c87ee Mon Sep 17 00:00:00 2001 From: deadvey Date: Tue, 1 Apr 2025 19:34:02 +0100 Subject: [PATCH] made log actually append to log file and not overwrite... also readme change --- README.md | 6 ++++-- output.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cf19f75..59afa10 100755 --- a/README.md +++ b/README.md @@ -5,5 +5,7 @@ I've written a basic program in python called glogger, it is a customisable, sta * click: `pip install click` # TO DO -* Add RSS and/or ATOM support -* Make it more reliable? +* Add ATOM support +* Properly comment everything +* Better logging to help debug +* Make it generally more reliable/less buggy diff --git a/output.py b/output.py index 3104c62..47ba7ab 100644 --- a/output.py +++ b/output.py @@ -2,5 +2,5 @@ import config def log(text): if config.verbose == True: print(text) - with open(config.logfile, "w") as logfile: + with open(config.logfile, "a") as logfile: logfile.write(f"{text}\n")