From 28a8022019a4e2a552ff5b02ae0a4df9947eca87 Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 25 Oct 2024 17:12:39 +0200 Subject: [PATCH] change jit logs to debug for now (#1957) --- executor/src/constant_evaluator/jit_compiler.rs | 3 ++- jit-compiler/src/lib.rs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/executor/src/constant_evaluator/jit_compiler.rs b/executor/src/constant_evaluator/jit_compiler.rs index c04dbc5c5..35e75a4c8 100644 --- a/executor/src/constant_evaluator/jit_compiler.rs +++ b/executor/src/constant_evaluator/jit_compiler.rs @@ -14,7 +14,8 @@ pub fn generate_values( ) -> HashMap<(String, PolyID), VariablySizedColumn> { let compiled_pil = match powdr_jit_compiler::compile(analyzed, &symbols_to_compile(analyzed)) { Err(err) => { - log::error!("Failed to compile some constant columns: {}", err); + // TODO this should be changed back to Error after the introduction of the ToCol trait. + log::debug!("Failed to compile some constant columns: {}", err); return HashMap::new(); } Ok(fun_map) => fun_map, diff --git a/jit-compiler/src/lib.rs b/jit-compiler/src/lib.rs index a689b2ede..1e331d487 100644 --- a/jit-compiler/src/lib.rs +++ b/jit-compiler/src/lib.rs @@ -53,7 +53,8 @@ pub fn compile( analyzed: &Analyzed, requested_symbols: &[&str], ) -> Result { - log::info!("JIT-compiling {} symbols...", requested_symbols.len()); + // TODO this should be changed back to Info after the introduction of the ToCol trait. + log::debug!("JIT-compiling {} symbols...", requested_symbols.len()); let mut codegen = CodeGenerator::new(analyzed); let successful_symbols = requested_symbols @@ -70,7 +71,8 @@ pub fn compile( if successful_symbols.len() < requested_symbols.len() { let successful_hash = successful_symbol_names.iter().collect::>(); - log::info!( + // TODO this should be changed back to Info after the introduction of the ToCol trait. + log::debug!( "Unable to generate code during JIT-compilation for the following symbols. Will use evaluator instead.\n{}", requested_symbols .iter()