refactor: slight log message tweaking

This commit is contained in:
Ryan 2025-03-06 19:02:29 -05:00
parent 9001cd9701
commit b20beb6e88
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ pub async fn handle_event(client: Client, event: Event, state: State) -> anyhow:
{ {
ncr_options = Some(options); ncr_options = Some(options);
trimmed.clone_into(&mut content); trimmed.clone_into(&mut content);
info!("Decrypted message from {sender}: {content}"); info!("decrypted message from {sender}: {content}");
} }
if message.is_whisper() && globals.get::<Vec<String>>("Owners")?.contains(&sender) { if message.is_whisper() && globals.get::<Vec<String>>("Owners")?.contains(&sender) {

View File

@ -80,8 +80,8 @@ async fn main() -> anyhow::Result<()> {
OpenOptions::new() OpenOptions::new()
.append(true) .append(true)
.create(true) .create(true)
.open(log_file) .open(&log_file)
.expect("log file should be accessible"), .expect(&(log_file + " should be accessible")),
) )
.boxed() .boxed()
}) })