Tweak log formatting

This commit is contained in:
Sage Vaillancourt 2024-06-23 10:47:15 -04:00
parent 1bf98e9b86
commit 68f8e56b1d
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ fn message<'r>(message: Form<MessagePost<'r>>) -> Result<RawHtml<String>, std::i
.open("messages.log") .open("messages.log")
.unwrap(); .unwrap();
let now = Local::now(); let now = Local::now();
writeln!(&mut file, "{}, {}", now.format("[%Y-%m-%d, %H:%M:%S]"), message.message)?; writeln!(&mut file, "{} {}", now.format("[%Y-%m-%d %H:%M:%S]"), message.message)?;
Ok(get(true)) Ok(get(true))
} }