introduce scan context (#4373)

* introduce scan context

* minor

* add joined errors to resultevents

* change `executor` funcs' signature

* fix tests

* join errors in `LogError` func

* change func signature

* add guard
This commit is contained in:
Dogan Can Bakir
2023-11-27 19:54:45 +01:00
committed by GitHub
parent 469598cba2
commit ce5df9cc02
27 changed files with 260 additions and 133 deletions

View File

@@ -255,6 +255,7 @@ func (request *Request) MakeResultEventItem(wrapped *output.InternalWrappedEvent
Timestamp: time.Now(),
MatcherStatus: true,
TemplateEncoded: request.options.EncodeTemplate(),
Error: types.ToString(wrapped.InternalEvent["error"]),
}
return data
}