Commit 2f47adbf authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'fix-logging' into 'master'

Fix logging to file

See merge request !73
parents 3674bdab 681dae17
Pipeline #33272 passed with stages
in 6 minutes and 41 seconds
......@@ -83,8 +83,7 @@ def main():
"Operating System :: Unix",
"Environment :: Console",
"Environment :: Web Environment"
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7"
"Programming Language :: Python :: 3.8"
],
**kwargs
)
......
......@@ -40,7 +40,7 @@ class JobLog(Model):
def append_log(self, data):
with open(self.log_path, "a") as f:
f.write(str(data))
f.write(data.decode("utf-8"))
def get_log(self):
path = self.log_path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment