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 true
} }
None => { 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 false
} }
} }
@ -113,13 +113,13 @@ where
Ok(Message::Task(task)) => match executor.upgrade() { Ok(Message::Task(task)) => match executor.upgrade() {
Some(e) => unsafe { e.execute(task) }, Some(e) => unsafe { e.execute(task) },
None => { 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; return;
} }
}, },
Ok(Message::Shutdown) => return, Ok(Message::Shutdown) => return,
Err(err) => { Err(err) => {
nih_log!( nih_trace!(
"Worker thread got disconnected unexpectedly, shutting down: {}", "Worker thread got disconnected unexpectedly, shutting down: {}",
err err
); );

View file

@ -142,7 +142,7 @@ where
true true
} }
None => { 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 false
} }
} }

View file

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