1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

python: fix log file name

This commit is contained in:
Steffen Vogel 2018-11-30 20:45:17 +01:00
parent e33e1904b8
commit 96b3147766

View file

@ -33,7 +33,7 @@ class Node(object):
if self.log_filename is None:
now = datetime.datetime.now()
self.log_filename = now.strftime('villas-node_%Y-%m%-%d_%H-%M-%S.log')
self.log_filename = now.strftime('villas-node_%Y-%m-%d_%H-%M-%S.log')
self.log = open(self.log_filename, 'w+')