create file if not exists

This commit is contained in:
Marco Kohn 2025-04-12 22:41:52 +02:00
parent 55b5f55246
commit 8c405594f3

View File

@ -173,7 +173,7 @@ class FSCLogger:
self.return_and_exit(Response(id=request.id, error="notification is missing its linked object.")) self.return_and_exit(Response(id=request.id, error="notification is missing its linked object."))
## Log to file ## Log to file
f = open(self.logfile, "a") f = open(self.logfile, "a+")
f.write("Now the file has more content!") f.write("Now the file has more content!")
f.close() f.close()
self.log("getting data %s" % notification) self.log("getting data %s" % notification)