Skip to content
Myr

Make sure the debug log contains line breaks (#1650)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Many debug logs have no line breaks, so fix them here. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integrations systems such as TravisCI. - You should add/modify tests to cover your proposed code changes. - If your pull request contains a new feature, please document it on the README.

authored by henrylee2cn · committed by Bo-Yi Wu · parent d6b2c13 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:debug.go+3 added
49 unmodified lines
50}5152func debugPrint(format string, values ...interface{}) {53 if IsDebugging() {54 if !strings.HasSuffix(format, "\n") {55 format += "\n"56 }57 fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)58 }59}60
43 unmodified lines