Skip to content
New issue

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

Some logs don't contain a timestamp #15

Closed
philippgille opened this issue Sep 2, 2018 · 4 comments
Closed

Some logs don't contain a timestamp #15

philippgille opened this issue Sep 2, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@philippgille
Copy link
Owner

Example:

[GIN-debug] Listening and serving HTTP on :8080
Creating invoice for a new API request
2018/09/02 22:45:30 Sending invoice in response: [...]
[GIN] 2018/09/02 - 22:45:30 |�[97;43m 402 �[0m|    279.2542ms |       127.0.0.1 |�[97;44m GET     �[0m /qr?data=testtext

So it's Creating invoice for a new API request, but also Checking invoice for hash [...] and potentially others.

@philippgille philippgille added the bug Something isn't working label Sep 2, 2018
@philippgille
Copy link
Owner Author

Related to #7

@philippgille
Copy link
Owner Author

Probably caused by Gin's init func:

func init() {
	log.SetFlags(0)
}

@philippgille
Copy link
Owner Author

Related to gin-gonic/gin#829

@philippgille
Copy link
Owner Author

Closing the issue, because it's up to the person who uses ln-paywall how he wants to deal with the issue.

Gin doesn't offer any own logging mechanisms and uses log.Println(...) throughout its own examples, see https://github.com/gin-gonic/gin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant