fix: do not log empty messages
This commit is contained in:
1 parent
23db07ed4e
commit
5965b70b39
1 file changed
+3
-1
@@ -81,9 +81,11 @@ func LogVerboseQuietContainerLogs(containerID string) {
|
|||||||
LogExclaim(fmt.Sprintf("Failed to fetch container logs: %s", containerID))
|
LogExclaim(fmt.Sprintf("Failed to fetch container logs: %s", containerID))
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, line := range strings.Split(string(b), "\n") {
|
for _, line := range strings.Split(strings.TrimSpace(string(b)), "\n") {
|
||||||
|
if line != "" {
|
||||||
LogVerboseQuiet(line)
|
LogVerboseQuiet(line)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogWarn is the warning log formatter
|
// LogWarn is the warning log formatter
|
||||||
|
|||||||
Reference in new issue
Block a user