feat: add logLevel and remove verbose #4157
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 includes changes to the
dfcache
anddfget
documentation and configuration files, focusing on removing deprecated options, updating network terminology, and enhancing logging configuration. The most important changes include removing thepprof-port
andverbose
options, updating references to the P2P network, and adding a newLogLevel
configuration option.Deprecated Options Removal:
pprof-port
option across alldfcache
anddfget
documentation files, as it is no longer supported. ([[1]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-a99409cf4b38ee1750d03a6d6e3ea8a0f32704272306e3a774088ddc0fb9cd56L19-L22)
,[[2]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-2772111a83fad318e6250def6015c5849de7df9ed7a2b7d8ab63d29709fe1b7dL19-L22)
,[[3]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-63d67c5e8fe4b14b40ed0502fc12f305ff79ab27af5401458f57a21117607ddbL19-L22)
,[[4]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-b41908d4bf50b84e21443eb45d23135e9c447254ef0def8091dbe9165197b566L19-L22)
,[[5]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-60d44573cc007d3ba81ac7f8084ed0e013a46c2cf5cd5a2aa628c64028685779L19-L22)
,[[6]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-928feef7c89ecf1808291eebdb0285538a5578dce4a02e4394a86ead567330ffL20-L23)
,[[7]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-e71ee67f445bc9be1f09930a0e2aa3c114b8a1e49d1c498b027dc365f5a0e581L19-L22)
,[[8]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-47843daebd11d6f62965644dafcc34f4bc7f7d4c8539542f9e771a70d08d88e9L26-L29)
,[[9]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-3a8055323637a620c1683c389730b1ae556d8be8bb8a572a404aed9907eb3791L26-L29)
,[[10]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-7d3125fe272cf83c73c9e80d2de2b4f1b7751b89b87c8bc20627ec4f419a1568L22-L25)
,[[11]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-6ec7f73ceed7af9d5e07e57274142ce00dfc4e8243ae343325d9d7977c1dce51L22-L25)
,[[12]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-f0715a542b716120f1d546665f0a1c98d5f61a2a3695f350c053cceea2a36e11L22-L25)
,[[13]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-a7d23849cd6a4dddba25c97232927e59eccfd8d57e67986a362b5f0ab8ca26b5L22-L25)
,[[14]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-ede63f343dfb79de9d20c8c5788668b1ed9137a92db16550041e3ba13e99b7baL22-L25)
,[[15]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-c16e1393d1c8b09457cff16793870538af8ebf19985fbb73ca4ba4a40f3eab53L22-L25)
,[[16]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-79a0d8dd15dbe8963ccb2505c4ecd74b8bd58c3e9b873a5fe053e57b87029063L22-L25)
,[[17]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-25f6e66a3a58fb7d3ca41bed0a8047dec97c55c7e4257c431669a13748a3ff29L35)
,[[18]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-eabf4040306e859c0af851b06b0511e5771d851ffb46d21e33e933b385921a3aL32)
)verbose
option from documentation files, simplifying logging configuration. ([[1]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-a99409cf4b38ee1750d03a6d6e3ea8a0f32704272306e3a774088ddc0fb9cd56L19-L22)
,[[2]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-2772111a83fad318e6250def6015c5849de7df9ed7a2b7d8ab63d29709fe1b7dL19-L22)
,[[3]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-63d67c5e8fe4b14b40ed0502fc12f305ff79ab27af5401458f57a21117607ddbL19-L22)
,[[4]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-b41908d4bf50b84e21443eb45d23135e9c447254ef0def8091dbe9165197b566L19-L22)
,[[5]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-60d44573cc007d3ba81ac7f8084ed0e013a46c2cf5cd5a2aa628c64028685779L19-L22)
,[[6]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-928feef7c89ecf1808291eebdb0285538a5578dce4a02e4394a86ead567330ffL20-L23)
,[[7]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-e71ee67f445bc9be1f09930a0e2aa3c114b8a1e49d1c498b027dc365f5a0e581L19-L22)
,[[8]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-47843daebd11d6f62965644dafcc34f4bc7f7d4c8539542f9e771a70d08d88e9L26-L29)
,[[9]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-3a8055323637a620c1683c389730b1ae556d8be8bb8a572a404aed9907eb3791L26-L29)
,[[10]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-7d3125fe272cf83c73c9e80d2de2b4f1b7751b89b87c8bc20627ec4f419a1568L22-L25)
,[[11]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-6ec7f73ceed7af9d5e07e57274142ce00dfc4e8243ae343325d9d7977c1dce51L22-L25)
,[[12]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-f0715a542b716120f1d546665f0a1c98d5f61a2a3695f350c053cceea2a36e11L22-L25)
,[[13]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-a7d23849cd6a4dddba25c97232927e59eccfd8d57e67986a362b5f0ab8ca26b5L22-L25)
,[[14]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-ede63f343dfb79de9d20c8c5788668b1ed9137a92db16550041e3ba13e99b7baL22-L25)
,[[15]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-c16e1393d1c8b09457cff16793870538af8ebf19985fbb73ca4ba4a40f3eab53L22-L25)
,[[16]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-79a0d8dd15dbe8963ccb2505c4ecd74b8bd58c3e9b873a5fe053e57b87029063L22-L25)
,[[17]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-25f6e66a3a58fb7d3ca41bed0a8047dec97c55c7e4257c431669a13748a3ff29L44)
,[[18]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-eabf4040306e859c0af851b06b0511e5771d851ffb46d21e33e933b385921a3aL41)
)Network Terminology Update:
tag
option indfcache export
documentation to reference the "P3P network" instead of the "P2P network." ([[1]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-63d67c5e8fe4b14b40ed0502fc12f305ff79ab27af5401458f57a21117607ddbL19-L22)
,[[2]](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-f0715a542b716120f1d546665f0a1c98d5f61a2a3695f350c053cceea2a36e11L22-L25)
)Logging Enhancements:
LogLevel
configuration option indfcache.go
, allowing users to specify log levels such as "debug," "info," "warn," and others. ([client/config/dfcache.goR55-R57](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-572f67ece41fd2c52e9bcf5762e6f7a40af95ce1a87144e526aae1c2d87c5014R55-R57)
)verbose
andlog-level
settings fromdfget.yaml
and replaced them withLogLevel
for consistency. ([build/package/nfpm/config/dfget.yamlL28-L29](https://github.com/dragonflyoss/dragonfly/pull/4157/files#diff-7ff0d74657a1252ae360e1b4ef2adf13b5f5e12a6e413cc60f1a9f6eabbfebaaL28-L29)
)Related Issue
Motivation and Context
Screenshots (if appropriate)
Types of changes
Checklist