From 949067952184be162e99d4335cce52a493773db7 Mon Sep 17 00:00:00 2001 From: Fred Carle Date: Fri, 21 Oct 2022 10:14:55 -0400 Subject: [PATCH] fix: Change time format for HTTP API log (#910) Relevant issue(s) Resolves #899 Description This PR changes the formatting of the elapsed time in the logs from requests to the HTTP API. --- api/http/logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/http/logger.go b/api/http/logger.go index 4a7ac0cdf2..f2c745f479 100644 --- a/api/http/logger.go +++ b/api/http/logger.go @@ -76,8 +76,8 @@ func loggerMiddleware(next http.Handler) http.Handler { lrw.contentLength, ), logging.NewKV( - "ElapsedSeconds", - elapsed, + "ElapsedTime", + elapsed.String(), ), ) })