mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
chore: add warning if 'tracy' not enabled (#21867)
This commit is contained in:
@@ -166,10 +166,16 @@ impl LogArgs {
|
||||
tracer = tracer.with_samply(config);
|
||||
}
|
||||
|
||||
#[cfg(feature = "tracy")]
|
||||
if self.tracy {
|
||||
let config = self.layer_info(LogFormat::Terminal, self.tracy_filter.clone(), false);
|
||||
tracer = tracer.with_tracy(config);
|
||||
#[cfg(feature = "tracy")]
|
||||
{
|
||||
let config = self.layer_info(LogFormat::Terminal, self.tracy_filter.clone(), false);
|
||||
tracer = tracer.with_tracy(config);
|
||||
}
|
||||
#[cfg(not(feature = "tracy"))]
|
||||
{
|
||||
tracing::warn!("`--log.tracy` requested but `tracy` feature was not compiled in");
|
||||
}
|
||||
}
|
||||
|
||||
let guard = tracer.init_with_layers(layers)?;
|
||||
|
||||
Reference in New Issue
Block a user