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 @@ -124,10 +124,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SpawnedSigner
124
124
) ;
125
125
let ( res_send, res_recv) = channel ( ) ;
126
126
let ev = SignerEventReceiver :: new ( config. network . is_mainnet ( ) ) ;
127
- #[ cfg( feature = "monitoring_prom" ) ]
128
- {
129
- crate :: monitoring:: start_serving_monitoring_metrics ( config. clone ( ) ) . ok ( ) ;
130
- }
127
+ crate :: monitoring:: start_serving_monitoring_metrics ( config. clone ( ) ) . ok ( ) ;
131
128
let runloop = RunLoop :: new ( config. clone ( ) ) ;
132
129
let mut signer: RunLoopSigner < S , T > = libsigner:: Signer :: new ( runloop, ev, res_send) ;
133
130
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
@@ -144,7 +144,7 @@ pub fn start_serving_monitoring_metrics(config: GlobalConfig) -> Result<(), Stri
144
144
#[ cfg( not( feature = "monitoring_prom" ) ) ]
145
145
{
146
146
if config. metrics_endpoint . is_some ( ) {
147
- warn ! ( "Not starting monitoring metrics server as the monitoring_prom feature is not enabled" ) ;
147
+ info ! ( "`metrics_endpoint` is configured for the signer, but the monitoring_prom feature is not enabled. Not starting monitoring metrics server. " ) ;
148
148
}
149
149
}
150
150
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments