mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-27 23:46:39 +01:00
fix: fixes grouping not working with unknown levels (#3520)
This commit is contained in:
@@ -206,7 +206,7 @@ func createEvent(message string, streamType StdType) *LogEvent {
|
||||
func checkPosition(currentEvent *LogEvent, nextEvent *LogEvent) {
|
||||
currentLevel := guessLogLevel(currentEvent)
|
||||
if nextEvent != nil {
|
||||
if currentEvent.IsCloseToTime(nextEvent) && currentLevel != "" && !nextEvent.HasLevel() {
|
||||
if currentEvent.IsCloseToTime(nextEvent) && currentLevel != "unknown" && !nextEvent.HasLevel() {
|
||||
currentEvent.Position = Beginning
|
||||
nextEvent.Position = Middle
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ type LogEvent struct {
|
||||
}
|
||||
|
||||
func (l *LogEvent) HasLevel() bool {
|
||||
return l.Level != ""
|
||||
return l.Level != "unknown"
|
||||
}
|
||||
|
||||
func (l *LogEvent) IsCloseToTime(other *LogEvent) bool {
|
||||
|
||||
Reference in New Issue
Block a user