Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
f4ac934a
Unverified
Commit
f4ac934a
authored
3 years ago
by
reivilibre
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert use of PeriodicallyFlushingMemoryHandler by default (#10515)
parent
a7bacccd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.d/10515.feature
+1
-0
1 addition, 0 deletions
changelog.d/10515.feature
docs/sample_log_config.yaml
+1
-4
1 addition, 4 deletions
docs/sample_log_config.yaml
synapse/config/logger.py
+1
-4
1 addition, 4 deletions
synapse/config/logger.py
with
3 additions
and
8 deletions
changelog.d/10515.feature
0 → 100644
+
1
−
0
View file @
f4ac934a
Add
a
buffered logging handler which periodically flushes itself.
This diff is collapsed.
Click to expand it.
docs/sample_log_config.yaml
+
1
−
4
View file @
f4ac934a
...
...
@@ -28,7 +28,7 @@ handlers:
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
# logs will still be flushed immediately.
buffer
:
class
:
synapse.
logging.handlers.
PeriodicallyFlushing
MemoryHandler
class
:
logging.handlers.MemoryHandler
target
:
file
# The capacity is the number of log lines that are buffered before
# being written to disk. Increasing this will lead to better
...
...
@@ -36,9 +36,6 @@ handlers:
# be written to disk.
capacity
:
10
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
# instead of "buffer" and "file" in the logger handlers.
...
...
This diff is collapsed.
Click to expand it.
synapse/config/logger.py
+
1
−
4
View file @
f4ac934a
...
...
@@ -71,7 +71,7 @@ handlers:
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
# logs will still be flushed immediately.
buffer:
class:
synapse.
logging.handlers.
PeriodicallyFlushing
MemoryHandler
class: logging.handlers.MemoryHandler
target: file
# The capacity is the number of log lines that are buffered before
# being written to disk. Increasing this will lead to better
...
...
@@ -79,9 +79,6 @@ handlers:
# be written to disk.
capacity: 10
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
# instead of
"
buffer
"
and
"
file
"
in the logger handlers.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment