mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
Fix metrics http server error messages (#1946)
## Issue Addressed - Resolves #1945 ## Proposed Changes - As per #1945, fix a log message from the metrics server that was falsely claiming to be from the api server. - Ensure successful api request logs are published to debug, not trace. This is something I've wanted to do for a while. ## Additional Info NA
This commit is contained in:
@@ -430,11 +430,11 @@ where
|
||||
let exit = runtime_context.executor.exit();
|
||||
|
||||
let (listen_addr, server) = http_metrics::serve(ctx, exit)
|
||||
.map_err(|e| format!("Unable to start HTTP API server: {:?}", e))?;
|
||||
.map_err(|e| format!("Unable to start HTTP metrics server: {:?}", e))?;
|
||||
|
||||
runtime_context
|
||||
.executor
|
||||
.spawn_without_exit(async move { server.await }, "http-api");
|
||||
.spawn_without_exit(async move { server.await }, "http-metrics");
|
||||
|
||||
Some(listen_addr)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user