Browse Source

Update 'lcmlog-server'

paologalli 4 years ago
parent
commit
cbcd93a059
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lcmlog-server

+ 4 - 0
lcmlog-server

@@ -11,6 +11,7 @@ import logging.handlers
 import hashlib
 import contextlib
 import toml
+import subprocess
 
 
 # We log what happens every time someone connects
@@ -25,6 +26,9 @@ file_handler = logging.handlers.TimedRotatingFileHandler(filename = DIR + "/logs
 file_handler.setFormatter(file_formatter)
 logger.addHandler(file_handler)
 
+# Update logfile acl
+subprocess.call(["chmod", "666", DIR + "/logs/logfile"])
+
 
 #------------------------------------------------------------------------------