Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw committed Jan 31, 2024
1 parent e0ac30a commit f4797b4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,8 @@ func dumpString(v reflect.Value) string {

constraint := int(math.Min(float64(numEntries), float64(cfg.MaxLength+50))) + adder + newLineCount

// fmt.Println("\n\t adder: ", adder)
// fmt.Println("\t numEntries: ", numEntries)
// fmt.Println("\t constraint: ", constraint)

s := fmt.Sprintf("%#v", v)[:constraint]

// fmt.Println("\t vv: ", fmt.Sprintf("%#v", v))
// fmt.Println("\t s: ", s)
// fmt.Println("\t nLine: ", strings.Count(s, "\n"))
// fmt.Println("\t nLine: ", strings.Count(fmt.Sprintf("%s", v), "\n"))

if numEntries > constraint {
remainder := numEntries - constraint
s = s + fmt.Sprintf(" ...<%d more redacted>..", remainder)
Expand Down

0 comments on commit f4797b4

Please sign in to comment.