commit | df067075d67f230ce13dea41ed06fca257d03c14 | [log] [tgz] |
---|---|---|
author | Tony Gong <gongt@google.com> | Mon Oct 14 20:57:18 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Oct 14 20:57:18 2019 +0000 |
tree | 27b1a10e08382615eacc8745d70cca39347056a8 | |
parent | 54c9a865bf055fdcf360ea261b491874df6d88f5 [diff] |
[net-cli] Propagate errors and use logger to log Errors returned from Netstack as a result of FIDL methods will be propagated up and cause the binary to exit with an error. Instead of using println!() and eprintln!() directly for output, added a logger which prints info or below to stdout and warn or above to stderr. Output indicating an operation completed successfully is now logged at info, which by default will be shown; while output that should always be shown (e.g. interface information when net-cli is invoked to list all interfaces) still use println!(). Test: fx run-test net-cli-tests Change-Id: I2470db5d3dc107f7f6a39e2e14c720e938479f99
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.