From bc026b0b7d9d6e907e0fcc9cda182c705d25c04d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 9 Mar 2022 10:42:57 -0500 Subject: [PATCH] add debug log --- src/egui_app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/egui_app.rs b/src/egui_app.rs index b55927f..5e4eeea 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -1,5 +1,5 @@ use crate::function::{FunctionEntry, RiemannSum, EMPTY_FUNCTIONENTRY}; -use crate::misc::{digits_precision, log_helper}; +use crate::misc::{digits_precision, log_helper, debug_log}; use crate::parsing::{add_asterisks, test_func}; use const_format::formatc; @@ -92,6 +92,8 @@ lazy_static::lazy_static! { let path = file.header().path().unwrap(); let path_string = path.to_string_lossy(); + debug_log(&format!("Loading file: {}", path_string)); + // Match the filename if path_string.ends_with(".ttf") { // Parse font files