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

can logged data be summarized or reorganized? #1

Open
ahillio opened this issue May 19, 2017 · 3 comments
Open

can logged data be summarized or reorganized? #1

ahillio opened this issue May 19, 2017 · 3 comments

Comments

@ahillio
Copy link

ahillio commented May 19, 2017

The information I most want to see in the logs is "resultCode" and "errors". This information is at the bottom of the log message. It would be great to have them visible from drush ws but the end of the message gets clipped off.
selection_288
desktop 1_287

@jkissam
Copy link
Contributor

jkissam commented May 19, 2017

yes - if you want to patch/branch it quickly at the code level, you could:

a) remove all the array keys except 'data_returned' from line 152 in rules_api.rules.inc (this would still log all of the returned data, but you wouldn't get any of the call)

or

b) replace lines 86-94 with

$log= isset($return['data']) ? $return['data'] : array();

and then define $fields in line 152 as array('resultCode','errors');

@jkissam
Copy link
Contributor

jkissam commented May 19, 2017

longer-term, I could add controls for this in the UI

@ahillio
Copy link
Author

ahillio commented May 23, 2017

Oh cool I'll give that a shot next time I'm testing a rule.

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

No branches or pull requests

2 participants