mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-12 12:46:23 +01:00
app/vlselect/logsql: properly handle the error from ParseLogMessage
This commit is contained in:
parent
caf4743e45
commit
772852ff4f
@ -7,6 +7,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil"
|
||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logger"
|
||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logjson"
|
||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logstorage"
|
||||
)
|
||||
@ -168,7 +169,9 @@ func (rs *rowsSorter) parseRows(src []byte) {
|
||||
continue
|
||||
}
|
||||
|
||||
p.ParseLogMessage(line)
|
||||
if err := p.ParseLogMessage(line); err != nil {
|
||||
logger.Panicf("BUG: unexpected invalid JSON line: %s", err)
|
||||
}
|
||||
|
||||
timeValue := ""
|
||||
fieldsBufLen := len(fieldsBuf)
|
||||
|
Loading…
Reference in New Issue
Block a user