small date fix in logger task
This commit is contained in:
parent
e675d4be27
commit
3665948c45
1 changed files with 1 additions and 2 deletions
|
|
@ -46,9 +46,8 @@ class LoggerTask(Task):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def execute(self, job_information):
|
def execute(self, job_information):
|
||||||
now = datetime.datetime.now().strftime("%Y.%m.%d %H:%M:%S")
|
|
||||||
f = open(self.directory + self.file, 'a')
|
f = open(self.directory + self.file, 'a')
|
||||||
f.write(now + ': ' + job_information.get_response_message() + '\n')
|
f.write(str(datetime.datetime.now()) + ': ' + job_information.get_response_message() + '\n')
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue