@@ -93,7 +93,7 @@ impl<D: HasDisplayHandle + ?Sized> ContextInterface<D> for Arc<X11DisplayImpl<D>
93
93
}
94
94
None => {
95
95
// The user didn't provide an XCB connection, so create our own.
96
- log :: info!( "no XCB connection provided by the user, so spawning our own" ) ;
96
+ tracing :: info!( "no XCB connection provided by the user, so spawning our own" ) ;
97
97
XCBConnection :: connect ( None )
98
98
. swbuf_err ( "Failed to spawn XCB connection" ) ?
99
99
. 0
@@ -102,7 +102,7 @@ impl<D: HasDisplayHandle + ?Sized> ContextInterface<D> for Arc<X11DisplayImpl<D>
102
102
103
103
let is_shm_available = is_shm_available ( & connection) ;
104
104
if !is_shm_available {
105
- log :: warn!( "SHM extension is not available. Performance may be poor." ) ;
105
+ tracing :: warn!( "SHM extension is not available. Performance may be poor." ) ;
106
106
}
107
107
108
108
let supported_visuals = supported_visuals ( & connection) ;
@@ -207,7 +207,7 @@ impl<D: HasDisplayHandle + ?Sized, W: HasWindowHandle> SurfaceInterface<D, W> fo
207
207
}
208
208
} ;
209
209
210
- log :: trace!( "new: window_handle={:X}" , window_handle. window) ;
210
+ tracing :: trace!( "new: window_handle={:X}" , window_handle. window) ;
211
211
let window = window_handle. window . get ( ) ;
212
212
213
213
// Run in parallel: start getting the window depth and (if necessary) visual.
@@ -307,7 +307,7 @@ impl<D: HasDisplayHandle + ?Sized, W: HasWindowHandle> SurfaceInterface<D, W> fo
307
307
}
308
308
309
309
fn resize ( & mut self , width : NonZeroU32 , height : NonZeroU32 ) -> Result < ( ) , SoftBufferError > {
310
- log :: trace!(
310
+ tracing :: trace!(
311
311
"resize: window={:X}, size={}x{}" ,
312
312
self . window,
313
313
width,
@@ -337,7 +337,7 @@ impl<D: HasDisplayHandle + ?Sized, W: HasWindowHandle> SurfaceInterface<D, W> fo
337
337
}
338
338
339
339
fn buffer_mut ( & mut self ) -> Result < BufferImpl < ' _ , D , W > , SoftBufferError > {
340
- log :: trace!( "buffer_mut: window={:X}" , self . window) ;
340
+ tracing :: trace!( "buffer_mut: window={:X}" , self . window) ;
341
341
342
342
// Finish waiting on the previous `shm::PutImage` request, if any.
343
343
self . buffer . finish_wait ( self . display . connection ( ) ) ?;
@@ -347,7 +347,7 @@ impl<D: HasDisplayHandle + ?Sized, W: HasWindowHandle> SurfaceInterface<D, W> fo
347
347
}
348
348
349
349
fn fetch ( & mut self ) -> Result < Vec < u32 > , SoftBufferError > {
350
- log :: trace!( "fetch: window={:X}" , self . window) ;
350
+ tracing :: trace!( "fetch: window={:X}" , self . window) ;
351
351
352
352
let ( width, height) = self
353
353
. size
@@ -416,12 +416,12 @@ impl<D: HasDisplayHandle + ?Sized, W: HasWindowHandle + ?Sized> BufferInterface
416
416
. size
417
417
. expect ( "Must set size of surface before calling `present_with_damage()`" ) ;
418
418
419
- log :: trace!( "present: window={:X}" , imp. window) ;
419
+ tracing :: trace!( "present: window={:X}" , imp. window) ;
420
420
421
421
match imp. buffer {
422
422
Buffer :: Wire ( ref wire) => {
423
423
// This is a suboptimal strategy, raise a stink in the debug logs.
424
- log :: debug!( "Falling back to non-SHM method for window drawing." ) ;
424
+ tracing :: debug!( "Falling back to non-SHM method for window drawing." ) ;
425
425
426
426
imp. display
427
427
. connection ( )
@@ -834,7 +834,7 @@ fn create_shm_id() -> io::Result<OwnedFd> {
834
834
}
835
835
836
836
Err ( rustix:: io:: Errno :: EXIST ) => {
837
- log :: warn!( "x11: SHM ID collision at {} on try number {}" , name, i) ;
837
+ tracing :: warn!( "x11: SHM ID collision at {} on try number {}" , name, i) ;
838
838
}
839
839
840
840
Err ( e) => return Err ( e. into ( ) ) ,
@@ -886,7 +886,7 @@ fn supported_visuals(c: &impl Connection) -> HashSet<Visualid> {
886
886
. iter ( )
887
887
. any ( |f| ( f. depth == 24 || f. depth == 32 ) && f. bits_per_pixel == 32 )
888
888
{
889
- log :: warn!( "X11 server does not have a depth 24/32 format with 32 bits per pixel" ) ;
889
+ tracing :: warn!( "X11 server does not have a depth 24/32 format with 32 bits per pixel" ) ;
890
890
return HashSet :: new ( ) ;
891
891
}
892
892
0 commit comments