From 969fbcd6d491d072b95d97bab6ef12efffd5f2bd Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 12 May 2023 11:16:15 +0300 Subject: [PATCH] fix(tvix/eval): builtins.trace prints to stderr Change-Id: Icf577396035474d6977e627058aba5805c61985e Reviewed-on: https://cl.tvl.fyi/c/depot/+/8563 Tested-by: BuildkiteCI Autosubmit: tazjin Reviewed-by: flokli --- tvix/eval/src/builtins/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 464809b27..d774e8813 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -901,7 +901,7 @@ mod pure_builtins { async fn builtin_trace(co: GenCo, message: Value, value: Value) -> Result { // TODO(grfn): `trace` should be pluggable and capturable, probably via a method on // the VM - println!("trace: {} :: {}", message, message.type_of()); + eprintln!("trace: {} :: {}", message, message.type_of()); Ok(value) }