mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Revert use of PeriodicallyFlushingMemoryHandler by default (#10515)
This commit is contained in:
parent
a7bacccd85
commit
f4ac934afe
1
changelog.d/10515.feature
Normal file
1
changelog.d/10515.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add a buffered logging handler which periodically flushes itself.
|
@ -28,7 +28,7 @@ handlers:
|
|||||||
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
|
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
|
||||||
# logs will still be flushed immediately.
|
# logs will still be flushed immediately.
|
||||||
buffer:
|
buffer:
|
||||||
class: synapse.logging.handlers.PeriodicallyFlushingMemoryHandler
|
class: logging.handlers.MemoryHandler
|
||||||
target: file
|
target: file
|
||||||
# The capacity is the number of log lines that are buffered before
|
# The capacity is the number of log lines that are buffered before
|
||||||
# being written to disk. Increasing this will lead to better
|
# being written to disk. Increasing this will lead to better
|
||||||
@ -36,9 +36,6 @@ 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
|
||||||
# The period of time, in seconds, between forced flushes.
|
|
||||||
# Messages will not be delayed for longer than this time.
|
|
||||||
period: 5
|
|
||||||
|
|
||||||
# A handler that writes logs to stderr. Unused by default, but can be used
|
# A handler that writes logs to stderr. Unused by default, but can be used
|
||||||
# instead of "buffer" and "file" in the logger handlers.
|
# instead of "buffer" and "file" in the logger handlers.
|
||||||
|
@ -71,7 +71,7 @@ handlers:
|
|||||||
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
|
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
|
||||||
# logs will still be flushed immediately.
|
# logs will still be flushed immediately.
|
||||||
buffer:
|
buffer:
|
||||||
class: synapse.logging.handlers.PeriodicallyFlushingMemoryHandler
|
class: logging.handlers.MemoryHandler
|
||||||
target: file
|
target: file
|
||||||
# The capacity is the number of log lines that are buffered before
|
# The capacity is the number of log lines that are buffered before
|
||||||
# being written to disk. Increasing this will lead to better
|
# being written to disk. Increasing this will lead to better
|
||||||
@ -79,9 +79,6 @@ 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
|
||||||
# The period of time, in seconds, between forced flushes.
|
|
||||||
# Messages will not be delayed for longer than this time.
|
|
||||||
period: 5
|
|
||||||
|
|
||||||
# A handler that writes logs to stderr. Unused by default, but can be used
|
# A handler that writes logs to stderr. Unused by default, but can be used
|
||||||
# instead of "buffer" and "file" in the logger handlers.
|
# instead of "buffer" and "file" in the logger handlers.
|
||||||
|
Loading…
Reference in New Issue
Block a user