8000 Logging: Deprecate `--verbose` by nikurt · Pull Request #9547 · near/nearcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Logging: Deprecate --verbose #9547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 21, 2023
Merged

Logging: Deprecate --verbose #9547

merged 3 commits into from
Sep 21, 2023

Conversation

nikurt
Copy link
Contributor
@nikurt nikurt commented Sep 21, 2023

--verbose is not a bool, but a String argument, which is confusing.

--verbose is not a bool, but a String argument, which is confusing.
@nikurt nikurt requested a review from a team as a code owner September 21, 2023 08:45
@nikurt nikurt requested a review from Longarithm September 21, 2023 08:45
--verbose is not a bool, but a String argument, which is confusing.
neard/src/cli.rs Outdated
Comment on lines 180 to 190
match self.verbose {
None => None,
Some(None) => Some(""),
Some(Some(ref target)) => Some(target.as_str()),
Some(None) => {
tracing::error!(target: "neard", "--verbose flag is deprecated, please use RUST_LOG or log_config.json instead.");
Some("")
}
Some(Some(ref target)) => {
tracing::error!(target: "neard", "--verbose flag is deprecated, please use RUST_LOG or log_config.json instead.");
Some(target.as_str())
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.verbose.as_ref().map(|arg| {
    tracing::error!(target: "neard", "--verbose flag is deprecated, please use RUST_LOG or log_config.json instead.");
    arg.map_or("", String::as_str)
})

?

8000

Copy link
Contributor
@Ekleog-NEAR Ekleog-NEAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ideally with @mina86’s nit :)

--verbose is not a bool, but a String argument, which is confusing.
@nikurt nikurt enabled auto-merge September 21, 2023 15:23
@nikurt nikurt added this pull request to the merge queue Sep 21, 2023
Merged via the queue into master with commit 2526d03 Sep 21, 2023
@nikurt nikurt deleted the nikurt-depr-verbose branch September 21, 2023 15:59
nikurt added a commit that referenced this pull request Sep 22, 2023
* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.

* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.

* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.
nikurt added a commit that referenced this pull request Sep 26, 2023
* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.

* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.

* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.
nikurt added a commit that referenced this pull request Sep 26, 2023
* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.

* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.

* Logging: Deprecate --verbose

--verbose is not a bool, but a String argument, which is confusing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0