cfg: document /dev/stdout for [debug_logfile] and its interaction with --silent#7579
Open
pete-csyn wants to merge 1 commit into
Open
cfg: document /dev/stdout for [debug_logfile] and its interaction with --silent#7579pete-csyn wants to merge 1 commit into
pete-csyn wants to merge 1 commit into
Conversation
…h --silent xrpld has two log sinks: the console (stderr) and the optional [debug_logfile] file sink. --silent disables the console sink for the entire run, so under a process supervisor or in a container that captures stdout/stderr, no ongoing logs are emitted after the startup banner. The file sink is independent of --silent, so pointing [debug_logfile] at /dev/stdout restores log visibility to the container log driver. The example config did not mention either the container pattern or the --silent interaction; this comment closes that gap.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
Adds a short comment to the
[debug_logfile]stanza incfg/xrpld-example.cfgexplaining that, in a container, the debug log file can be set to/dev/stdout(or/proc/1/fd/1) to route logs to the container log driver, and that when--silentis used the file sink is the only sink that keeps receiving ongoing logs.Context of Change
xrpldhas two log sinks: the console (stderr) and the optional[debug_logfile]file sink. The--silentflag disables the console sink for the entire run of the process, so under a process supervisor or in a container that captures stdout/stderr, no ongoing logs are emitted after the startup banner. The file sink is independent of--silent, so pointing[debug_logfile]at/dev/stdoutrestores log visibility to the container log driver. The example config did not mention either the container pattern or the--silentinteraction; this comment closes that gap for operators reading the example config.This is a comments-only change to the example config; no behavior changes.
Type of Change
API Impact
libxrplchangeNone — documentation/comment change to the example config only.