summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-28 14:46:57 +0300
committerWolfy-J <[email protected]>2020-10-28 14:46:57 +0300
commit3e2b12f2e9218d6251f6e87dc20527a9c11853e7 (patch)
treec62500e4f6ac4cdf5c67bfdd8a44d333e88d9ea6 /plugins
parent9f6e68dd5ea97b6b490e3a76e0a01b13a0ce414b (diff)
- cs fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/logger/encoder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/logger/encoder.go b/plugins/logger/encoder.go
index 3eef191b..30ae2400 100644
--- a/plugins/logger/encoder.go
+++ b/plugins/logger/encoder.go
@@ -36,7 +36,7 @@ func ColoredLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
// ColoredNameEncoder colorizes service names.
func ColoredNameEncoder(s string, enc zapcore.PrimitiveArrayEncoder) {
if len(s) < 12 {
- s = s + strings.Repeat(" ", 12-len(s))
+ s += strings.Repeat(" ", 12-len(s))
}
enc.AppendString(color.HiGreenString(s))
@@ -45,7 +45,7 @@ func ColoredNameEncoder(s string, enc zapcore.PrimitiveArrayEncoder) {
// ColoredHashedNameEncoder colorizes service names and assigns different colors to different names.
func ColoredHashedNameEncoder(s string, enc zapcore.PrimitiveArrayEncoder) {
if len(s) < 12 {
- s = s + strings.Repeat(" ", 12-len(s))
+ s += strings.Repeat(" ", 12-len(s))
}
colorID := stringHash(s, len(colorMap))