cron-command icon indicating copy to clipboard operation
cron-command copied to clipboard

Feature request: Add cron arguments into logging

Open jordie23 opened this issue 6 years ago • 1 comments

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.

jordie23 avatar Mar 12 '19 00:03 jordie23

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

Are you interested in providing a PR for this?

schlessera avatar Mar 13 '19 07:03 schlessera