fix: os.chmod 0666 sur réouverture de access.log

This commit is contained in:
Gemini committed 2026-10-12 09:35:51 +02:00
1 parent 4d96f22d04
commit 03ac891072
1 file changed
+4
+4
View File
@@ -78,6 +78,10 @@ class WatchedRotatingFileHandler(logging.handlers.RotatingFileHandler):
except Exception: except Exception:
pass pass
self.stream = self._open() self.stream = self._open()
try:
os.chmod(self.baseFilename, 0o666)
except Exception:
pass
self._statstream() self._statstream()
def emit(self, record): def emit(self, record):