mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
app/vlselect/logsql: properly handle the error from ParseLogMessage
This commit is contained in:
parent
caf4743e45
commit
772852ff4f
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil"
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil"
|
||||||
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logger"
|
||||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logjson"
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logjson"
|
||||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logstorage"
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logstorage"
|
||||||
)
|
)
|
||||||
|
@ -168,7 +169,9 @@ func (rs *rowsSorter) parseRows(src []byte) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
p.ParseLogMessage(line)
|
if err := p.ParseLogMessage(line); err != nil {
|
||||||
|
logger.Panicf("BUG: unexpected invalid JSON line: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
timeValue := ""
|
timeValue := ""
|
||||||
fieldsBufLen := len(fieldsBuf)
|
fieldsBufLen := len(fieldsBuf)
|
||||||
|
|
Loading…
Reference in a new issue