Add logging to window and context creation

This commit is contained in:
Richard 2022-01-27 06:02:19 -03:00
parent 1e62fdf069
commit 764b424dfc
5 changed files with 38 additions and 9 deletions

View file

@ -137,14 +137,16 @@ where
let subscription = application.subscription();
let window = settings
.window
.into_builder(
&application.title(),
application.mode(),
event_loop.primary_monitor(),
settings.id,
)
let builder = settings.window.into_builder(
&application.title(),
application.mode(),
event_loop.primary_monitor(),
settings.id,
);
log::info!("Window builder: {:#?}", builder);
let window = builder
.build(&event_loop)
.map_err(Error::WindowCreationFailed)?;