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

Function write_message

prqlc/prqlc/src/debug/render_html.rs:179–187  ·  view source on GitHub ↗
(w: &mut W, message: &Message)

Source from the content-addressed store, hash-verified

177}
178
179fn write_message<W: Write>(w: &mut W, message: &Message) -> Result {
180 writeln!(w, r#"<div class="entry msg-{}">"#, message.level)?;
181 write!(w, "[<b>{}</b>", message.level)?;
182 if let Some(module_path) = &message.module_path {
183 write!(w, r#" {module_path}"#)?;
184 }
185 writeln!(w, "] {}", message.text)?;
186 writeln!(w, "</div>")
187}
188
189fn write_titled_entry<W: Write>(w: &mut W, index: usize, entry: &DebugEntry) -> Result {
190 writeln!(w, r#"<div class=entry>"#)?;

Callers 2

write_debug_logFunction · 0.85
write_stage_contentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected