phoenixframework / phoenix

Peace of mind from prototype to production
https://www.phoenixframework.org
MIT License
21.46k stars 2.88k forks source link

Logs of requests served in <1ms are printed as seconds #5933

Closed feld closed 1 month ago

feld commented 2 months ago

Phoenix 1.7.14

14:38:22.689 request_id=F_SGAowY9bSH4scAACCc [info] Sent 200 in 1ms
14:38:22.980 request_id=F_SGAp1-WTi9lt0AAAoX [info] GET /health
14:38:22.980 request_id=F_SGAp1-WTi9lt0AAAoX [info] Sent 200 in 799s

That request did not take 799 seconds 😅

chrismccord commented 2 months ago

It should be printing µs. What is your os? https://github.com/phoenixframework/phoenix/blob/48ee8cc407f060eee1152f2c8f64bff49a6b4f15/lib/phoenix/logger.ex#L153

josevalim commented 1 month ago

I believe this is a terminal/font issue. Please make sure they can display the µ character. :)