Tweak log formatting
This commit is contained in:
parent
1bf98e9b86
commit
68f8e56b1d
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue