Skip to content
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

Make error messages in segcache and pingserver use stderr #471

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/server/pingserver/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {
// custom panic hook to terminate whole process after unwinding
std::panic::set_hook(Box::new(|s| {
error!("{}", s);
println!("{:?}", Backtrace::new());
eprintln!("{:?}", Backtrace::new());
std::process::exit(101);
}));

Expand Down Expand Up @@ -96,7 +96,7 @@ fn main() {
match PingserverConfig::load(file) {
Ok(c) => c,
Err(e) => {
println!("error launching pingserver: {}", e);
eprintln!("error loading config file: {}", e);
std::process::exit(1);
}
}
Expand All @@ -108,7 +108,7 @@ fn main() {
match Pingserver::new(config) {
Ok(s) => s.wait(),
Err(e) => {
println!("error launching pingserver: {}", e);
eprintln!("error launching pingserver: {}", e);
std::process::exit(1);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/server/segcache/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
// custom panic hook to terminate whole process after unwinding
std::panic::set_hook(Box::new(|s| {
error!("{}", s);
println!("{:?}", Backtrace::new());
eprintln!("{:?}", Backtrace::new());
std::process::exit(101);
}));

Expand Down Expand Up @@ -103,7 +103,7 @@ fn main() {
match SegcacheConfig::load(file) {
Ok(c) => c,
Err(e) => {
println!("{}", e);
eprintln!("unable to load config file: {}", e);
std::process::exit(1);
}
}
Expand All @@ -120,7 +120,7 @@ fn main() {
match Segcache::new(config) {
Ok(segcache) => segcache.wait(),
Err(e) => {
println!("error launching segcache: {}", e);
eprintln!("error launching segcache: {}", e);
std::process::exit(1);
}
}
Expand Down