create file if not exists
This commit is contained in:
parent
55b5f55246
commit
8c405594f3
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user