fix: Errorv should generate JSON Object for content field in log (#3222)

Signed-off-by: soasurs <soasurs@gmail.com>
This commit is contained in:
soasurs
2023-05-08 17:16:44 +08:00
committed by GitHub
parent 2684a157ff
commit 8762a3b7ba
3 changed files with 46 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ import (
const testlog = "Stay hungry, stay foolish."
var testobj = map[string]any{"foo": "bar"}
func TestCollectSysLog(t *testing.T) {
CollectSysLog()
content := getContent(captureOutput(func() {