aboutsummaryrefslogtreecommitdiffstats
path: root/prog/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/parse.go')
-rw-r--r--prog/parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/parse.go b/prog/parse.go
index bad2dcecc..324a74911 100644
--- a/prog/parse.go
+++ b/prog/parse.go
@@ -17,7 +17,7 @@ type LogEntry struct {
End int // end offset in log
}
-func (target *Target) ParseLog(data []byte) []*LogEntry {
+func (target *Target) ParseLog(data []byte, mode DeserializeMode) []*LogEntry {
var entries []*LogEntry
ent := &LogEntry{
ID: -1,
@@ -61,7 +61,7 @@ func (target *Target) ParseLog(data []byte) []*LogEntry {
tmp := append(cur, line...)
- p, err := target.Deserialize(tmp, NonStrict)
+ p, err := target.Deserialize(tmp, mode)
if err != nil {
continue
}