Fix docker image to not log at `/homeserver.log` (#10045)
Fixes #9970 Signed-off-by: Sergio Miguéns Iglesias lonyelon@lony.xyz
This commit is contained in:
parent
057ce7b754
commit
22a8838f62
|
@ -0,0 +1 @@
|
||||||
|
Fix bug introduced in Synapse 1.33.0 which caused a `Permission denied: '/homeserver.log'` error when starting Synapse with the generated log configuration. Contributed by Sergio Miguéns Iglesias.
|
|
@ -9,10 +9,11 @@ formatters:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
{% if LOG_FILE_PATH %}
|
||||||
file:
|
file:
|
||||||
class: logging.handlers.TimedRotatingFileHandler
|
class: logging.handlers.TimedRotatingFileHandler
|
||||||
formatter: precise
|
formatter: precise
|
||||||
filename: {{ LOG_FILE_PATH or "homeserver.log" }}
|
filename: {{ LOG_FILE_PATH }}
|
||||||
when: "midnight"
|
when: "midnight"
|
||||||
backupCount: 6 # Does not include the current log file.
|
backupCount: 6 # Does not include the current log file.
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
|
@ -29,6 +30,7 @@ handlers:
|
||||||
# be written to disk.
|
# be written to disk.
|
||||||
capacity: 10
|
capacity: 10
|
||||||
flushLevel: 30 # Flush for WARNING logs as well
|
flushLevel: 30 # Flush for WARNING logs as well
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
console:
|
console:
|
||||||
class: logging.StreamHandler
|
class: logging.StreamHandler
|
||||||
|
|
Loading…
Reference in New Issue