Skip to content

Commit

Permalink
add hint for tracing endpoint port conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Dec 17, 2020
1 parent abfe4f6 commit 73a74ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion zebrad/src/components/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl MetricsEndpoint {
"{} {} {}",
"Port for metrics endpoint already in use by another process:",
addr,
"- You can change the metrics default endpoint in the config."
"- You can change the metrics endpoint in the config."
),
}
}
Expand Down
11 changes: 6 additions & 5 deletions zebrad/src/components/tracing/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ impl TracingEndpoint {
// need to construct it inside the task.
let server = match Server::try_bind(&addr) {
Ok(s) => s,
Err(e) => {
error!("Could not open tracing endpoint listener");
error!("Error: {}", e);
return;
}
Err(_) => panic!(
"{} {} {}",
"Port for tracing endpoint already in use by another process:",
addr,
"- You can change the tracing endpoint port in the config."
),
}
.serve(service);

Expand Down

0 comments on commit 73a74ef

Please sign in to comment.