Skip to content

Commit

Permalink
fixed bug related to #40
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeghnag committed Feb 21, 2022
1 parent a9d4a89 commit 16254dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/logs/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ func parseCRILog(log []byte, infoLevel bool, warningLevel bool, errorLevel bool)
}

// Parse stream type
log = log[idx+1:]
idx = bytes.Index(log, delimiter)
_log := log[idx+1:]
idx = bytes.Index(_log, delimiter)
if idx < 0 {
return "", fmt.Errorf("stream type is not found")
}
stream := string(log[:idx])
stream := string(_log[:idx])
if len(stream) == 0 {
return "", nil
}
Expand Down

0 comments on commit 16254dc

Please sign in to comment.