nodeWaitForLogMessage: log found target line when on >= trace level logging

pull/656/head
iwilltry42 3 years ago
parent 2b059962c4
commit d10ed031d8
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 8
      pkg/client/node.go

@ -604,6 +604,14 @@ func NodeWaitForLogMessage(ctx context.Context, runtime runtimes.Runtime, node *
}
// check if we can find the specified line in the log
if nRead > 0 && strings.Contains(output, message) {
if log.GetLevel() >= log.TraceLevel {
temp := strings.Split(output, "\n")
for _, l := range temp {
if strings.Contains(l, message) {
log.Tracef("Found target log line: `%s`", l)
}
}
}
break
}

Loading…
Cancel
Save