diff --git a/RequestLogger.py b/RequestLogger.py index 427a42b..c12c05c 100644 --- a/RequestLogger.py +++ b/RequestLogger.py @@ -150,7 +150,7 @@ class FSCLogger: # validate fields if conf['logfile'] == "": invalid_fields.append('logfile') - + if len(invalid_fields) > 0: # return an error as at least one field seems invalid @@ -173,7 +173,7 @@ class FSCLogger: self.return_and_exit(Response(id=request.id, error="notification is missing its linked object.")) ## Log to file - f = open(self.logfile, "a") + f = open(self.logfile, "a+") f.write("Now the file has more content!") f.close() self.log("getting data %s" % notification)