fix: do not log empty messages

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-08-31 02:05:21 -04:00
1 parent 23db07ed4e
commit 5965b70b39
1 file changed
+3 -1
+3 -1
View File
@@ -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