add debug log

This commit is contained in:
Simon Gardling 2022-03-09 10:42:57 -05:00
parent 9622687316
commit bc026b0b7d

View File

@ -1,5 +1,5 @@
use crate::function::{FunctionEntry, RiemannSum, EMPTY_FUNCTIONENTRY}; 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 crate::parsing::{add_asterisks, test_func};
use const_format::formatc; use const_format::formatc;
@ -92,6 +92,8 @@ lazy_static::lazy_static! {
let path = file.header().path().unwrap(); let path = file.header().path().unwrap();
let path_string = path.to_string_lossy(); let path_string = path.to_string_lossy();
debug_log(&format!("Loading file: {}", path_string));
// Match the filename // Match the filename
if path_string.ends_with(".ttf") { if path_string.ends_with(".ttf") {
// Parse font files // Parse font files