From 42825f88466f58951ab6821cf8cc31c5dc884a1f Mon Sep 17 00:00:00 2001 From: h0nIg Date: Tue, 2 Jul 2024 14:27:53 +0200 Subject: [PATCH] displaybody should respect new line --- util/ui/request_logger_file_writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ui/request_logger_file_writer.go b/util/ui/request_logger_file_writer.go index a2d7aca1e2b..347c556d6cf 100644 --- a/util/ui/request_logger_file_writer.go +++ b/util/ui/request_logger_file_writer.go @@ -29,7 +29,7 @@ func newRequestLoggerFileWriter(ui *UI, lock *sync.Mutex, filePaths []string) *R func (display *RequestLoggerFileWriter) DisplayBody([]byte) error { for _, logFile := range display.logFiles { - _, err := logFile.WriteString(RedactedValue) + _, err := logFile.WriteString(fmt.Sprintf("%s\n", RedactedValue)) if err != nil { return err }