Skip to content

Commit 70b1df6

Browse files
committed
Increase log level for JIT-related messages
1 parent d9c1d17 commit 70b1df6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

executor/src/witgen/jit/function_cache.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> {
131131
can_process: impl CanProcessCall<T>,
132132
cache_key: &CacheKey<T>,
133133
) -> Result<CacheEntry<T>, CompilationError> {
134-
log::debug!(
134+
log::info!(
135135
"Compiling JIT function for\n Machine: {}\n Connection: {}\n Inputs: {:?}{}",
136136
self.machine_name,
137137
self.parts.bus_receives[&cache_key.bus_id],
@@ -157,11 +157,11 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> {
157157
cache_key.known_concrete,
158158
)
159159
.map_err(|e| {
160-
log::debug!("{e}");
160+
log::info!("{e}");
161161
CompilationError::Other(e)
162162
})?;
163163

164-
log::debug!("=> Success!");
164+
log::info!("=> Success!");
165165
let out_of_bounds_vars = code
166166
.iter()
167167
.flat_map(|effect| effect.referenced_variables())
@@ -181,15 +181,15 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> {
181181
);
182182
}
183183

184-
log::trace!("Generated code ({} steps)", code.len());
184+
log::info!("Generated code ({} steps)", code.len());
185185
let known_inputs = cache_key
186186
.known_args
187187
.iter()
188188
.enumerate()
189189
.filter_map(|(i, b)| if b { Some(Variable::Param(i)) } else { None })
190190
.collect::<Vec<_>>();
191191

192-
log::trace!("Compiling effects...");
192+
log::info!("Compiling effects...");
193193
let function = compile_effects(
194194
self.fixed_data.analyzed,
195195
self.column_layout.clone(),
@@ -198,7 +198,7 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> {
198198
prover_functions,
199199
)
200200
.unwrap();
201-
log::trace!("Compilation done.");
201+
log::info!("Compilation done.");
202202

203203
Ok(CacheEntry {
204204
function,
@@ -225,6 +225,7 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> {
225225
known_concrete,
226226
};
227227

228+
log::info!("Calling compiled function for {:?}", cache_key);
228229
self.witgen_functions
229230
.get(&cache_key)
230231
.or_else(|| {
@@ -239,6 +240,7 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> {
239240
.expect("compile_cached() returned false!")
240241
.function
241242
.call(self.fixed_data, mutable_state, values, data);
243+
log::info!("Done calling function");
242244

243245
Ok(true)
244246
}

0 commit comments

Comments
 (0)