diff --git a/graph/src/log/mod.rs b/graph/src/log/mod.rs index 083306216a6..ce5765bb38e 100644 --- a/graph/src/log/mod.rs +++ b/graph/src/log/mod.rs @@ -97,6 +97,9 @@ where fn format_custom(&self, record: &Record, values: &OwnedKVList) -> io::Result<()> { self.decorator.with_record(record, values, |mut decorator| { + #[cfg(debug_assertions)] + write!(decorator, "[DEBUG-BUILD] ")?; + decorator.start_timestamp()?; formatted_timestamp_local(&mut decorator)?; decorator.start_whitespace()?; diff --git a/node/src/launcher.rs b/node/src/launcher.rs index c07b0e06426..85127f0d474 100644 --- a/node/src/launcher.rs +++ b/node/src/launcher.rs @@ -413,6 +413,13 @@ pub async fn run( render_testament!(TESTAMENT) ); + #[cfg(debug_assertions)] + warn!( + logger, + "This is a DEBUG build — performance is severely degraded. \ + Use `cargo build --release` for production deployments." + ); + if !graph_server_index_node::PoiProtection::from_env(&ENV_VARS).is_active() { warn!( logger,