@@ -12,7 +12,7 @@ use crate::{
12
12
Error , Result , ReturnCode , WrapperErrorKind as ErrorKind ,
13
13
} ;
14
14
use handle_manager:: HandleManager ;
15
- use log:: { error , info } ;
15
+ use log:: { debug , error } ;
16
16
use mbox:: MBox ;
17
17
use std:: collections:: HashMap ;
18
18
use std:: ptr:: null_mut;
@@ -447,19 +447,19 @@ impl Context {
447
447
448
448
impl Drop for Context {
449
449
fn drop ( & mut self ) {
450
- info ! ( "Closing context." ) ;
450
+ debug ! ( "Closing context." ) ;
451
451
452
452
// Flush handles
453
453
for handle in self . handle_manager . handles_to_flush ( ) {
454
- info ! ( "Flushing handle {}" , ESYS_TR :: from( handle) ) ;
454
+ debug ! ( "Flushing handle {}" , ESYS_TR :: from( handle) ) ;
455
455
if let Err ( e) = self . flush_context ( handle) {
456
456
error ! ( "Error when dropping the context: {}" , e) ;
457
457
}
458
458
}
459
459
460
460
// Close handles
461
461
for handle in self . handle_manager . handles_to_close ( ) . iter_mut ( ) {
462
- info ! ( "Closing handle {}" , ESYS_TR :: from( * handle) ) ;
462
+ debug ! ( "Closing handle {}" , ESYS_TR :: from( * handle) ) ;
463
463
if let Err ( e) = self . tr_close ( handle) {
464
464
error ! ( "Error when dropping context: {}." , e) ;
465
465
}
@@ -480,6 +480,6 @@ impl Drop for Context {
480
480
. unwrap ( ) , // should not fail based on how the context is initialised/used
481
481
)
482
482
} ;
483
- info ! ( "Context closed." ) ;
483
+ debug ! ( "Context closed." ) ;
484
484
}
485
485
}
0 commit comments