Skip to content

Commit aa3e82c

Browse files
committed
fix: disable arkworks r1cs logging
Without this change, penumbra proof deps can generate an unreasonable amount of log messages, even if they aren't emitted. See for context [0]. [0] penumbra-zone/penumbra#2977
1 parent 92f8dad commit aa3e82c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ pub use catchup::Catchup;
2424
async fn main() -> anyhow::Result<()> {
2525
// Configuring logging
2626
let fmt_layer = tracing_subscriber::fmt::layer().with_target(true);
27-
let filter_layer = EnvFilter::try_from_default_env().or_else(|_| EnvFilter::try_new("info"))?;
27+
let filter_layer = EnvFilter::try_from_default_env()
28+
.or_else(|_| EnvFilter::try_new("info"))?
29+
// Force disabling of r1cs log messages, otherwise the `ark-groth16` crate
30+
// can use a massive (>16GB) amount of memory generating unused trace statements.
31+
.add_directive("r1cs=off".parse()?);
2832
let registry = tracing_subscriber::registry()
2933
.with(filter_layer)
3034
.with(fmt_layer);

0 commit comments

Comments
 (0)