1
0
Fork 0

Use nih_trace!() for lesser important messages

Like the missing CLAP extensions.
This commit is contained in:
Robbert van der Helm 2022-06-07 14:18:56 +02:00
parent 2cd3fe1e08
commit 89afa8bf00
3 changed files with 6 additions and 6 deletions

View file

@ -72,7 +72,7 @@ where
true
}
None => {
nih_log!("The executor doesn't exist but somehow it's still submitting tasks, this shouldn't be possible!");
nih_trace!("The executor doesn't exist but somehow it's still submitting tasks, this shouldn't be possible!");
false
}
}
@ -113,13 +113,13 @@ where
Ok(Message::Task(task)) => match executor.upgrade() {
Some(e) => unsafe { e.execute(task) },
None => {
nih_log!("Received a new task but the executor is no longer alive, shutting down worker");
nih_trace!("Received a new task but the executor is no longer alive, shutting down worker");
return;
}
},
Ok(Message::Shutdown) => return,
Err(err) => {
nih_log!(
nih_trace!(
"Worker thread got disconnected unexpectedly, shutting down: {}",
err
);

View file

@ -142,7 +142,7 @@ where
true
}
None => {
nih_log!("The executor doesn't exist but somehow it's still submitting tasks, this shouldn't be possible!");
nih_trace!("The executor doesn't exist but somehow it's still submitting tasks, this shouldn't be possible!");
false
}
}

View file

@ -1424,7 +1424,7 @@ impl<P: ClapPlugin> Wrapper<P> {
}
// TODO: Make sure this only gets logged in debug mode
_ => {
nih_log!(
nih_trace!(
"Unhandled CLAP event type {} for namespace {}",
raw_event.type_,
raw_event.space_id
@ -2152,7 +2152,7 @@ impl<P: ClapPlugin> Wrapper<P> {
} else if id == CStr::from_ptr(CLAP_EXT_TAIL) {
&wrapper.clap_plugin_tail as *const _ as *const c_void
} else {
nih_log!("Host tried to query unknown extension {:?}", id);
nih_trace!("Host tried to query unknown extension {:?}", id);
ptr::null()
}
}