In-house Alpine builder

This commit is contained in:
AlexSSD7 2023-08-27 15:30:51 +01:00
commit f9cdbe5ac9
17 changed files with 315 additions and 678 deletions

View file

@ -19,7 +19,7 @@ func wrapErrWithLog(err error, msg, log string) error {
func getLogErrMsg(s string) string {
logToInclude := strings.ReplaceAll(s, "\n", "\\n")
logToInclude = strings.TrimSuffix(logToInclude, "\\n")
logToInclude = utils.ClearUnprintableChars(logToInclude)
logToInclude = utils.ClearUnprintableChars(logToInclude, false)
origLogLen := len(logToInclude)
const maxLogLen = 256