Browse Source

Fix \n symbol in console

Volodymyr Tkach 2 years ago
parent
commit
3d94fc2107
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gosql/common/common.go

+ 1 - 1
gosql/common/common.go

@@ -67,7 +67,7 @@ func log(w io.Writer, m string, s time.Time, e error, tx bool, query string, arg
 	}
 
 	res := fmt.Sprintln("\033[" + color + "m[SQL]" + tmsg + qmsg + astr + estr + fmt.Sprintf(" %.3f ms", time.Since(s).Seconds()) + "\033[0m")
-	fmt.Fprintln(w, res)
+	fmt.Fprint(w, res)
 	return res
 }