We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go version: 1.3 and up to current tip
Running the following program results in a single output line with two log headers (http://play.golang.org/p/e0CHv4tdQi):
package main import "log" func main() { log.Print("") log.Println("<- two headers") }
I believe this line in log/log.go (Logger.Output):
if len(s) > 0 && s[len(s)-1] != '\n' {
Should be changed to read:
if len(s) == 0 || s[len(s)-1] != '\n' {
Thank you for your consideration.
The text was updated successfully, but these errors were encountered:
d340b10
No branches or pull requests
Go version: 1.3 and up to current tip
Running the following program results in a single output line with two log headers (http://play.golang.org/p/e0CHv4tdQi):
I believe this line in log/log.go (Logger.Output):
Should be changed to read:
Thank you for your consideration.
The text was updated successfully, but these errors were encountered: