feat: add --log-to-stdout for command #1162
Merged
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.
Description
This pull request introduces a change in the logging mechanism across multiple components of the project. The key update replaces the
--verbose
flag with a new--log-to-stdout
flag for enabling detailed logs. This change affects Dockerfiles, service files, documentation, and the logging initialization function.Logging Flag Update:
ci/Dockerfile
,ci/Dockerfile.debug
, andci/Dockerfile.dfinit
: Updated thecargo build
command to use the--log-to-stdout
flag instead of--verbose
for logging. [1] [2] [3]ci/dfdaemon.service
: Replaced the--verbose
flag with--log-to-stdout
in theExecStart
command for thedfdaemon
service.Documentation Updates:
docs/performance-optimization.md
: Updated example commands to use--log-to-stdout
instead of--verbose
.dragonfly-client-backend/examples/plugin/README.md
: Adjusted example commands to reflect the new--log-to-stdout
flag.Codebase Adjustment:
dragonfly-client/src/tracing/mod.rs
: Refactored theinit_tracing
function to replace theverbose
parameter withlog_to_stdout
, ensuring consistent behavior with the new flag. [1] [2]Related Issue
Motivation and Context
Screenshots (if appropriate)