From 1e2de437115f9055f8d5daa8f3f6239349e9972f Mon Sep 17 00:00:00 2001
From: Dean Strelau <dean@honeycomb.io>
Date: Mon, 28 Dec 2020 15:20:11 -0600
Subject: [PATCH] [logger] Properly format duration (#199)

%d prints ns, not ms. %s will format appropriately for all values.
---
 logger/honeycomb.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/logger/honeycomb.go b/logger/honeycomb.go
index dadfcf6b41..f5f6c76fd9 100644
--- a/logger/honeycomb.go
+++ b/logger/honeycomb.go
@@ -118,7 +118,7 @@ func (h *HoneycombLogger) Start() error {
 func (h *HoneycombLogger) readResponses() {
 	resps := h.libhClient.TxResponses()
 	for resp := range resps {
-		respString := fmt.Sprintf("Response: status: %d, duration: %dms", resp.StatusCode, resp.Duration)
+		respString := fmt.Sprintf("Response: status: %d, duration: %s", resp.StatusCode, resp.Duration)
 		// read response, log if there's an error
 		switch {
 		case resp.StatusCode == 0: // log message dropped due to sampling