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 <tazjin@tvl.su>
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Vincent Ambo 2023-05-12 11:16:15 +03:00 committed by clbot
parent 6a30eb69e0
commit 969fbcd6d4

View file

@ -901,7 +901,7 @@ mod pure_builtins {
async fn builtin_trace(co: GenCo, message: Value, value: Value) -> Result<Value, ErrorKind> { async fn builtin_trace(co: GenCo, message: Value, value: Value) -> Result<Value, ErrorKind> {
// TODO(grfn): `trace` should be pluggable and capturable, probably via a method on // TODO(grfn): `trace` should be pluggable and capturable, probably via a method on
// the VM // the VM
println!("trace: {} :: {}", message, message.type_of()); eprintln!("trace: {} :: {}", message, message.type_of());
Ok(value) Ok(value)
} }