Skip to content

Commit

Permalink
multicore: Fix bug in log::error invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d authored Jun 1, 2021
1 parent 39533e2 commit 46dcfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multicore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ mod implementation {
if THREAD_POOL.current_thread_index().is_some() {
let msg = "wait() cannot be called from within the worker thread pool since that would lead to deadlocks";
// panic! doesn't necessarily kill the process, so we log as well.
error!(msg);
error!("{}", msg);
panic!(msg);
}
self.receiver.recv().unwrap()
Expand Down

0 comments on commit 46dcfe3

Please sign in to comment.