diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-13 21:20:41 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-13 21:20:41 +1000 |
commit | 139e7606f4ab68b469438956c378745f51f7b65b (patch) | |
tree | 2eaa9cb87e008ecaffefc01c5da933f1ea9852dd /debugon.go | |
parent | 1c37779bd46d988c9e7b4bdb846b9daa89856b7c (diff) |
Update benchmarks
Diffstat (limited to 'debugon.go')
-rw-r--r-- | debugon.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -49,7 +49,11 @@ func (dp *debugParser) logf(ps *State, result *Result, format string, args ...in if ps.Errored() { buf.WriteString(fmt.Sprintf(" did not find %s", ps.Error.expected)) } else if result != nil { - buf.WriteString(fmt.Sprintf(" found %s", result.String())) + resultStr := strconv.Quote(result.String()) + if len(resultStr) > 20 { + resultStr = resultStr[0:20] + } + buf.WriteString(fmt.Sprintf(" found %s", resultStr)) } buf.WriteRune('\n') return buf.String() |