Replace println! with debug_log::log(...)
This commit is contained in:
parent
795735072e
commit
d6fa156990
1 changed files with 10 additions and 2 deletions
|
@ -92,10 +92,18 @@ fn string_to_text(
|
||||||
loaded_fonts.push((path, font));
|
loaded_fonts.push((path, font));
|
||||||
return Some(loaded_fonts.len() - 1);
|
return Some(loaded_fonts.len() - 1);
|
||||||
} else {
|
} else {
|
||||||
println!("Failed to load {:?}: {:?}", &path, new_font);
|
log(
|
||||||
|
format!("Failed to load {:?}: {:?}", &path, new_font),
|
||||||
|
debug_log::LogState::Error,
|
||||||
|
debug_log::LogLevel::Error,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!("Failed to find font for {}", c);
|
log(
|
||||||
|
format!("Failed to find font for {}", c),
|
||||||
|
debug_log::LogState::Error,
|
||||||
|
debug_log::LogLevel::Error,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue