aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0e14e42..8655161 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -239,7 +239,7 @@ impl ThreadedPlugins {
// Send the message to the plugin if the plugin needs it
match plugin.execute(client, &message) {
ExecutionStatus::Done => (),
- ExecutionStatus::Err(e) => log_error(e),
+ ExecutionStatus::Err(e) => log_error(&e),
ExecutionStatus::RequiresThread => {
debug!(
"Spawning thread to execute {} with {}",
@@ -257,14 +257,14 @@ impl ThreadedPlugins {
.name(name)
.spawn(move || {
if let Err(e) = plugin.execute_threaded(&client, &message) {
- log_error(e);
+ log_error(&e);
} else {
debug!("{} sent response from thread", plugin.name());
}
})
.context(ErrorKind::ThreadSpawn)
{
- log_error(e.into());
+ log_error(&e.into());
}
}
}
@@ -290,7 +290,7 @@ impl ThreadedPlugins {
.name(name)
.spawn(move || {
if let Err(e) = plugin.command(&client, command) {
- log_error(e);
+ log_error(&e);
};
})
.context(ErrorKind::ThreadSpawn)?;