Skip to content

Commit

Permalink
Disable serial log trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSSD7 committed Jun 17, 2024
1 parent 750028a commit 5e86be6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ func GetLogErrMsg(s string, logLabel string) string {
logToInclude = strings.TrimSuffix(logToInclude, "\\n")
logToInclude = ClearUnprintableChars(logToInclude, false)

origLogLen := len(logToInclude)
const maxLogLen = 256
if origLogLen > maxLogLen {
logToInclude = fmt.Sprintf("[%v chars trimmed]", origLogLen-maxLogLen) + logToInclude[len(logToInclude)-maxLogLen:]
}
// origLogLen := len(logToInclude)
// const maxLogLen = 256
// if origLogLen > maxLogLen {
// logToInclude = fmt.Sprintf("[%v chars trimmed]", origLogLen-maxLogLen) + logToInclude[len(logToInclude)-maxLogLen:]
// }

return fmt.Sprintf("(%v: '%v')", logLabel, logToInclude)
}

0 comments on commit 5e86be6

Please sign in to comment.