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

$logger->notice() should be resolved to WP_CLI::log instead of WP_CLI::warning #15

Open
hirasso opened this issue Oct 12, 2022 · 6 comments
Assignees
Labels
task Very small unit of work

Comments

@hirasso
Copy link

hirasso commented Oct 12, 2022

Hi @markheydon, thanks for this little package! This is not really a bug, but rather a design question.

Regarding to the documentation of Monolog:

NOTICE (250): Normal but significant events.

This should not trigger a WP_CLI::warning, but rather just a simple WP_CLI::log:

$logger->notice('Something normal but significant happened');

What do you think? Happy to create a PR if you agree.

@markheydon
Copy link
Member

markheydon commented Oct 12, 2022

Very kind of you to say @hirasso. Honestly, when I first wrote it I did deliberate a bit on the mappings of the 'levels' so not surprised I didn't quite get it how some might want it to work.

I've no problem in theory changing this but wouldn't want to break anything that might be out there already, which probably isn't that much in all honesty.

I'm tied up today but will take a look through my notes tomorrow and see why I decided to pick that mapping in the first place. Have you got the link to the documentation you quoted?

@hirasso
Copy link
Author

hirasso commented Oct 13, 2022

Here is the link to the log level documentation:

https://seldaek.github.io/monolog/doc/01-usage.html#log-levels

@hirasso
Copy link
Author

hirasso commented Dec 7, 2022

Any news on this?

@markheydon markheydon added the question Further information is requested label Jan 15, 2024
@markheydon markheydon self-assigned this Jan 15, 2024
@markheydon markheydon added the user story Requirement or a value proposition from the perspective of the user label Jan 15, 2024
@markheydon
Copy link
Member

@hirasso Over 12 months since last looked at his, honestly not completely sure why I managed to stall this, so sorry about that. Did this stall some project or other you were working on? I hope not! I probably would have at least looked at a PR in all honestly, not sure why I didn't just say that at the time either.

Having just re-read the link you sent me, I'd probably agree with you (if I didn't at the time already in fact).

I need to update the code for latest versions etc. anyway so will probably do this as part of the same.

@markheydon markheydon added task Very small unit of work and removed question Further information is requested user story Requirement or a value proposition from the perspective of the user labels Jan 15, 2024
@hirasso
Copy link
Author

hirasso commented Jan 15, 2024

Hey @markheydon , no this wasn't a bigger issue for me. It would still be very nice to get this "fixed" in the next release. Good to see you haven't forgotten about it 🙂

@markheydon
Copy link
Member

Forgot? No not all! Just migrated to Zenhub though as was using Azure DevOps for works stuff thus personal stuff didn't get much of a look in 😜.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Very small unit of work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants