Fixed logging for latency