Skip to content

Conversation

@Ci-Jie
Copy link
Contributor

@Ci-Jie Ci-Jie commented Oct 16, 2021

When I copied Logging Request ID example to my host for testing
I found that it has some errors about UTF8 encoding
And error message like below:

# command-line-arguments
./main.go:16:2: invalid character U+200B in identifier
./main.go:16:45: cannot refer to unexported name logger.​Config​
./main.go:18:9: invalid character U+200B in identifier
./main.go:18:80: syntax error: unexpected ​, expecting comma or }

Then I tried to use UTF8 GBK encoding
And got the result like below:

鈥媋pp鈥�.鈥婾se鈥�(鈥媗ogger鈥�.鈥婲ew鈥�(logger.鈥婥onfig鈥媨
	// For more options, see the Config section
  Format鈥�: "${pid} ${locals:requestid} ${status} - ${method} ${path}鈥媆n鈥�"鈥�,
}))

So, I fixed it.

@ReneWerner87 ReneWerner87 merged commit c499407 into gofiber:master Oct 18, 2021
@welcome
Copy link

welcome bot commented Oct 18, 2021

Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants