diff --git a/src/events.rs b/src/events.rs index fdbc3f5..953da6c 100644 --- a/src/events.rs +++ b/src/events.rs @@ -37,7 +37,7 @@ pub async fn handle_event(client: Client, event: Event, state: State) -> anyhow: { ncr_options = Some(options); trimmed.clone_into(&mut content); - info!("Decrypted message from {sender}: {content}"); + info!("decrypted message from {sender}: {content}"); } if message.is_whisper() && globals.get::>("Owners")?.contains(&sender) { diff --git a/src/main.rs b/src/main.rs index 4316789..d2b5da3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,8 +80,8 @@ async fn main() -> anyhow::Result<()> { OpenOptions::new() .append(true) .create(true) - .open(log_file) - .expect("log file should be accessible"), + .open(&log_file) + .expect(&(log_file + " should be accessible")), ) .boxed() })