Used fmt.Fprintln() to print line breaks

This commit is contained in:
Michael Käufl 2015-05-12 10:46:17 +02:00
parent 1b04957416
commit 00e70ad605

@ -136,13 +136,13 @@ func logPanic(loggedError error, recursive bool) string {
if len(os.Args) > 0 {
fmt.Fprintf(fmtWriter, " %s", strings.Join(os.Args[1:], " "))
}
fmt.Fprint(fmtWriter, "\n")
fmt.Fprintln(fmtWriter)
logEnv(fmtWriter)
fmt.Fprint(fmtWriter, "\n")
fmt.Fprintln(fmtWriter)
fmtWriter.Write(ErrorBuffer.Bytes())
fmt.Fprint(fmtWriter, "\n")
fmt.Fprintln(fmtWriter)
fmt.Fprintln(fmtWriter, loggedError.Error())