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 }