Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 952c7cd

Browse files
author
Tobin C. Harding
committed
Print pre-logging diagnostics to stderr
1 parent dfc82d8 commit 952c7cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cnd/src/logging/initialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn initialize(
77
structured: bool,
88
) -> Result<(), log::SetLoggerError> {
99
#![allow(clippy::print_stdout)] // We cannot use `log` before we have the config file
10-
println!("Initializing logging with base level {}", base_log_level);
10+
eprintln!("Initializing logging with base level {}", base_log_level);
1111

1212
let (max_level, log) = create_logger(base_log_level, structured, stderr());
1313

cnd/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn spawn_warp_instance<
159159
fn read_config(options: &Options) -> anyhow::Result<config::File> {
160160
// if the user specifies a config path, use it
161161
if let Some(path) = &options.config_file {
162-
println!("Using config file {}", path.display());
162+
eprintln!("Using config file {}", path.display());
163163

164164
return config::File::read(&path)
165165
.with_context(|| format!("failed to read config file {}", path.display()));
@@ -172,7 +172,7 @@ fn read_config(options: &Options) -> anyhow::Result<config::File> {
172172
return Ok(config::File::default());
173173
}
174174

175-
println!(
175+
eprintln!(
176176
"Using config file at default path: {}",
177177
default_path.display()
178178
);

0 commit comments

Comments
 (0)