Closed alexandrestein closed 6 years ago
@alexandreStein I will have a look at it soon. Just trying to understand the problem :)
@alexandreStein I got it covered in https://github.com/labstack/gommon/commit/0a22a0df01a7c84944c607e8a6e91cfe421ea7ed, thanks for your contribution.
This changes the behavior of global calls like
log.Print()
for example.This is what happens when you display the
test
buffer. In first place this the result of the test using thetest
function. And then the result when you call the function directly.Display the line in
log.go
is not really useful. :smile: After this change the buffer display this:We can argue the way the test is done. Because if the file is updated the lines numbers will probably change and the test will fails. We can maybe move it in its own test file.