refactor: slight log message tweaking
This commit is contained in:
parent
9001cd9701
commit
b20beb6e88
@ -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) {
|
||||||
|
@ -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()
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user