refactor: trival changes (#41)

- refactor status code
- log remote addr and time in miliseconds
This commit is contained in:
sigoden
2022-06-15 19:57:28 +08:00
committed by GitHub
parent 12aafa00d8
commit 3c4bb77023
4 changed files with 75 additions and 66 deletions

View File

@@ -35,7 +35,7 @@ async fn run() -> BoxResult<()> {
}
env_logger::builder()
.format(|buf, record| {
let timestamp = buf.timestamp();
let timestamp = buf.timestamp_millis();
writeln!(buf, "[{} {}] {}", timestamp, record.level(), record.args())
})
.init();