From 3f89a2f8608909e158b9440ee4c8306e82947a84 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Mon, 9 Sep 2019 12:32:58 -0700 Subject: [PATCH] fix broken build on Mac OS Signed-off-by: Leo Chen --- internal/profiler/profiler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/profiler/profiler.go b/internal/profiler/profiler.go index 5f76a4123..619a73034 100644 --- a/internal/profiler/profiler.go +++ b/internal/profiler/profiler.go @@ -3,6 +3,7 @@ package profiler import ( "bytes" "encoding/json" + "fmt" "net/http" "os" "sync" @@ -48,7 +49,7 @@ func (profiler *Profiler) LogMemory() { memMap, _ := profiler.proc.MemoryMaps(false) loggedMemMap := "" for _, mems := range *memMap { - loggedMemMap += mems.String() + "; " + loggedMemMap = fmt.Sprintf("%v; %v", loggedMemMap, mems) } utils.Logger().Info(). Str("info", info.String()).