Skip to content

Commit a2d59e3

Browse files
Fix comments and add some logging.
1 parent c5d6087 commit a2d59e3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,12 @@ pub fn generate_deck(
243243
// Find end-of-block, in case it's the end of a diagram.
244244
if line == "```" {
245245
if let Some(diagram_str) = collecting_diagram.take() {
246-
// This is the end of a mermaid block
247-
println!("Got graph: {:?}", diagram_str);
246+
// This is the end of a dot block
247+
log::debug!("Got graph: {:?}", diagram_str);
248+
log::info!(
249+
"Calling graphviz to render diagram in {}",
250+
in_path.display()
251+
);
248252
let diagram = graphviz_rust::exec_dot(
249253
diagram_str,
250254
vec![graphviz_rust::cmd::CommandArg::Format(
@@ -265,7 +269,7 @@ pub fn generate_deck(
265269
if let Some(graph_str) = collecting_diagram.as_mut() {
266270
graph_str.push_str(line);
267271
graph_str.push('\n');
268-
// Don't emit the mermaid code
272+
// Don't emit the dot code
269273
continue;
270274
}
271275

0 commit comments

Comments
 (0)