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