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

Feature request: Add cron arguments into logging #41

Open
jordie23 opened this issue Mar 12, 2019 · 1 comment
Open

Feature request: Add cron arguments into logging #41

jordie23 opened this issue Mar 12, 2019 · 1 comment

Comments

@jordie23
Copy link

Would be great if the Executed the cron event 'x' message included a dump of the arguments passed in. Perhaps as part of a debug group so can be enabled/disabled via the --debug flag?

i.e. this line
https://github.com/wp-cli/cron-command/blob/master/src/Cron_Event_Command.php#L262

Personal reasoning is it'd be good to see the post ID for any publish_future_post events, but I'm sure it'd come in handy for others wanting to debug.

@schlessera
Copy link
Member

Yes, sounds like a good change, using debug output for backwards compatibility.

Are you interested in providing a PR for this?

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

No branches or pull requests

2 participants