MCPcopy Create free account
hub / github.com/PRQL/prql / log

Method log

prqlc/prqlc/src/debug/messages.rs:13–25  ·  view source on GitHub ↗
(&self, record: &Record)

Source from the content-addressed store, hash-verified

11 }
12
13 fn log(&self, record: &Record) {
14 if self.enabled(record.metadata()) {
15 super::log_entry(|| {
16 debug::DebugEntryKind::Message(debug::Message {
17 level: record.level().to_string(),
18 file: record.file().map(|x| x.to_string()),
19 line: record.line(),
20 module_path: record.module_path().map(|x| x.to_string()),
21 text: format!("{}", record.args()),
22 })
23 });
24 }
25 }
26
27 fn flush(&self) {}
28}

Callers 5

HFunction · 0.80
qFunction · 0.80
compileMethod · 0.80
WFunction · 0.80
XFunction · 0.80

Calls 4

log_entryFunction · 0.85
enabledMethod · 0.80
mapMethod · 0.80
MessageClass · 0.70

Tested by

no test coverage detected