-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Changes x-pack action executor to return result. #39820
Conversation
Previously, the result was never captured. It's now captured, and returned if it's JSONable. If not JSONable a `{succcess: true}` object is returned with a 200 response (used to be 204). Also added logging for action execution calls, in lieu of having an action history available. Drive-by: - `services.log` was set to the unbound Hapi server.log method, so places where it was set were changed to bind it to the server.
Pinging @elastic/kibana-stack-services |
jenkins retest this please |
💔 Build Failed |
jenkins retest this please |
💚 Build Succeeded |
💚 Build Succeeded |
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.
LGTM, just one comment about logging.
|
||
if (error != null) { | ||
services.log( | ||
['info', 'x-pack', 'actions'], |
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.
info seems like the wrong log level for an error.
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.
Ah, yes. And for the info
one below (success), wondering if that should be a debug
. How chatty is the Kibana log? Seems usually quiet to me.
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.
Yeah debug is probably better for the one below.
💚 Build Succeeded |
* Changes x-pack action executor to return result. Previously, the result was never captured. It's now captured, and returned if it's JSONable. If not JSONable a `{succcess: true}` object is returned with a 200 response (used to be 204). Also added logging for action execution calls, in lieu of having an action history available. Drive-by: - `services.log` was set to the unbound Hapi server.log method, so places where it was set were changed to bind it to the server.
* Changes x-pack action executor to return result. Previously, the result was never captured. It's now captured, and returned if it's JSONable. If not JSONable a `{succcess: true}` object is returned with a 200 response (used to be 204). Also added logging for action execution calls, in lieu of having an action history available. Drive-by: - `services.log` was set to the unbound Hapi server.log method, so places where it was set were changed to bind it to the server.
Previously, the result was never captured. It's now captured, and
returned if it's JSONable. If not JSONable a
{succcess: true}
object is returned with a 200 response (used to be 204).
Also added logging for action execution calls, in lieu of having an
action history available.
Drive-by:
services.log
was set to the unbound Hapi server.log method, soplaces where it was set were changed to bind it to the server.