File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SpawnedSigner
125
125
) ;
126
126
let ( res_send, res_recv) = channel ( ) ;
127
127
let ev = SignerEventReceiver :: new ( config. network . is_mainnet ( ) ) ;
128
- #[ cfg( feature = "monitoring_prom" ) ]
129
- {
130
- crate :: monitoring:: start_serving_monitoring_metrics ( config. clone ( ) ) . ok ( ) ;
131
- }
128
+ crate :: monitoring:: start_serving_monitoring_metrics ( config. clone ( ) ) . ok ( ) ;
132
129
let runloop = RunLoop :: new ( config. clone ( ) ) ;
133
130
let mut signer: RunLoopSigner < S , T > = libsigner:: Signer :: new ( runloop, ev, res_send) ;
134
131
let running_signer = signer. spawn ( endpoint) . expect ( "Failed to spawn signer" ) ;
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ use ::prometheus::HistogramTimer;
19
19
#[ cfg( feature = "monitoring_prom" ) ]
20
20
use slog:: slog_error;
21
21
#[ cfg( not( feature = "monitoring_prom" ) ) ]
22
- use slog:: slog_warn ;
22
+ use slog:: slog_info ;
23
23
#[ cfg( feature = "monitoring_prom" ) ]
24
24
use stacks_common:: error;
25
25
#[ cfg( not( feature = "monitoring_prom" ) ) ]
26
- use stacks_common:: warn ;
26
+ use stacks_common:: info ;
27
27
28
28
use crate :: config:: GlobalConfig ;
29
29
@@ -143,7 +143,7 @@ pub fn start_serving_monitoring_metrics(config: GlobalConfig) -> Result<(), Stri
143
143
#[ cfg( not( feature = "monitoring_prom" ) ) ]
144
144
{
145
145
if config. metrics_endpoint . is_some ( ) {
146
- warn ! ( "Not starting monitoring metrics server as the monitoring_prom feature is not enabled" ) ;
146
+ info ! ( "`metrics_endpoint` is configured for the signer, but the monitoring_prom feature is not enabled. Not starting monitoring metrics server. " ) ;
147
147
}
148
148
}
149
149
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments