From cd676fab5a410099a3fac96506d1bd1726a623a0 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 1 Mar 2021 18:05:53 -0500 Subject: [PATCH] Correct logic where we add a space after the prefix when logging --- logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.go b/logging.go index abd8e23..bca66ca 100644 --- a/logging.go +++ b/logging.go @@ -29,7 +29,7 @@ func LogToFile(path string, prefix string) (*os.File, error) { // doesn't already have a trailing space. if len(prefix) > 0 { finalChar := prefix[len(prefix)-1] - if unicode.IsSpace(rune(finalChar)) { + if !unicode.IsSpace(rune(finalChar)) { prefix += " " } }