Skip to content

Commit

Permalink
fix: log session drop as debug
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Jan 27, 2024
1 parent 0380d4f commit 67cf09b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,11 @@ unsafe impl Send for SharedSessionInner {}
unsafe impl Sync for SharedSessionInner {}

impl Drop for SharedSessionInner {
#[tracing::instrument(skip_all)]
#[tracing::instrument]
fn drop(&mut self) {
tracing::warn!("dropping SharedSessionInner");
tracing::debug!("dropping SharedSessionInner");
if !self.session_ptr.is_null() {
tracing::warn!("dropping session ptr");
tracing::debug!("dropping session ptr");
ortsys![unsafe ReleaseSession(self.session_ptr)];
}
self.session_ptr = std::ptr::null_mut();
Expand Down

0 comments on commit 67cf09b

Please sign in to comment.