-
Notifications
You must be signed in to change notification settings - Fork 91
Fix stdio incompatibility with some third-party clients #604
Conversation
Do not log validation status on stdout, use connection logs instead. See #540, ansible#541
…poses of testing.
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.
While the PR looks good, making connection
optional, I would still suggest to revert the replacement of debug()
with log()
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.
connection
does not support the changes requested, other implementations would have to happen elsewhere (connection.console.debug
not existing, connection.console.log
not accepting template literals).
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.
Based on the explanation, the PR looks good to me.
Thanks for the changes.
Main issue ansible/vscode-ansible#1142
Does not interfere with third-party clients while still emitting logs for debugging.
Note: the method
connection.console.debug
does not exist. If i recall correctlyconsole.debug
is the sameconsole.log
in node regardless.