add Errorv/Infov/Slowv (#909)

This commit is contained in:
Kevin Wan
2021-08-13 18:28:39 +08:00
committed by GitHub
parent dc43430812
commit fbf2eebc42
5 changed files with 166 additions and 34 deletions

View File

@@ -44,5 +44,5 @@ func captureOutput(f func()) string {
func getContent(jsonStr string) string {
var entry logEntry
json.Unmarshal([]byte(jsonStr), &entry)
return entry.Content
return entry.Content.(string)
}