Skip to content

Commit

Permalink
Change some context log message levels.
Browse files Browse the repository at this point in the history
Reduce some messages from info to debug that should not be displayed
by default to all users of the library.

Signed-off-by: William Brown <[email protected]>
  • Loading branch information
Firstyear committed Oct 7, 2023
1 parent 8a7a4cb commit 87d6caf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tss-esapi/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,19 +447,19 @@ impl Context {

impl Drop for Context {
fn drop(&mut self) {
info!("Closing context.");
debug!("Closing context.");

// Flush handles
for handle in self.handle_manager.handles_to_flush() {
info!("Flushing handle {}", ESYS_TR::from(handle));
debug!("Flushing handle {}", ESYS_TR::from(handle));
if let Err(e) = self.flush_context(handle) {
error!("Error when dropping the context: {}", e);
}
}

// Close handles
for handle in self.handle_manager.handles_to_close().iter_mut() {
info!("Closing handle {}", ESYS_TR::from(*handle));
debug!("Closing handle {}", ESYS_TR::from(*handle));
if let Err(e) = self.tr_close(handle) {
error!("Error when dropping context: {}.", e);
}
Expand All @@ -480,6 +480,6 @@ impl Drop for Context {
.unwrap(), // should not fail based on how the context is initialised/used
)
};
info!("Context closed.");
debug!("Context closed.");
}
}

0 comments on commit 87d6caf

Please sign in to comment.