Browse Source

Fix logfile rotation

Paolo Galli 4 years ago
parent
commit
d1f19c0a1f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lcmlog-server

+ 2 - 1
lcmlog-server

@@ -27,7 +27,8 @@ file_handler.setFormatter(file_formatter)
 logger.addHandler(file_handler)
 
 # Update logfile acl
-subprocess.call(["chmod", "444", DIR + "/logs/*"])
+subprocess.call(["touch", DIR + "/logs/logfile"])
+#subprocess.call(["chmod", "444", DIR + "/logs/*"])
 subprocess.call(["chmod", "666", DIR + "/logs/logfile"])