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
Log the debuggers found via the logger instead of ConsoleOutput #1258
base: master
Are you sure you want to change the base?
Conversation
@sanmai @maks-rafalko do you know where I should look at to see how infection resolves which debugger to use? |
What is a "debugger" in this context? :) |
sorry I meant code coverage generator... Guess I was too tired :D |
I don't think it does. This is a testing tool's job. E.g. PHPUnit's. |
Exactly. I guess it's here |
Also note it wasn't like this as of late 2019. Back then XDebug was used over PCOV if both were present. |
yield [ | ||
LogLevel::DEBUG, | ||
'message', | ||
'[debug] message', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that this test doesn't capture the formatter tags e.g. here the message that we write is <debug>[debug] message</debug>
where the tags are handled by the output formatter. I'm don't know however how to test that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done |
I'm trying to play with the logs displayed as I think there is a few things that could be improved there. However I believe this small change could add to the noise hence is worth extracting in a separate PR.
As a result here is this PR which is a small tweak on the ConsoleLogger. What does it do?
In 0.16.3:
In master (due to #1263):
Now:
So in other words:
writeln()
(since #1263 those are like so):