print info about egui integration on startup

This commit is contained in:
Simon Gardling 2022-03-26 01:04:44 -04:00
parent 848588e29d
commit a63841c3c3

View File

@ -323,11 +323,21 @@ impl Default for MathApp {
impl MathApp { impl MathApp {
#[allow(dead_code)] // This is used lol #[allow(dead_code)] // This is used lol
/// Create new instance of `MathApp` and return it /// Create new instance of `MathApp` and return it
pub fn new(_cc: &eframe::CreationContext<'_>) -> Self { pub fn new(cc: &eframe::CreationContext<'_>) -> Self {
// Remove loading indicator on wasm // Remove loading indicator on wasm
#[cfg(target_arch = "wasm32")] #[cfg(target_arch = "wasm32")]
stop_loading(); stop_loading();
tracing::info!(
"Integration name: {} Url: {:?}",
cc.integration_info.name,
if let Some(url) = &cc.integration_info.web_info {
url.location.url.clone()
} else {
"N/A".to_owned()
}
);
tracing::info!("egui app initialized."); tracing::info!("egui app initialized.");
Self::default() // initialize `MathApp` Self::default() // initialize `MathApp`
} }