debug: Wire up egui-interface

This commit is contained in:
Victoria Brekenfeld 2022-01-11 17:22:23 +01:00
parent 57d94515d5
commit 928ce9c6f6
6 changed files with 328 additions and 50 deletions

View file

@ -67,7 +67,7 @@ fn init_logger() -> Result<slog_scope::GlobalLoggerGuard> {
slog_stdlog::init().unwrap();
slog_scope::info!("Version: {}", std::env!("CARGO_PKG_VERSION"));
if cfg!(debug_assertions) {
if cfg!(feature = "debug") {
slog_scope::debug!(
"Debug build ({})",
std::option_env!("GIT_HASH").unwrap_or("Unknown")