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

Adding log statement to include the hostname on which a particular op… #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roopakparikh
Copy link
Contributor

Added a log statement to make it easy for customers to debug which host failed in a multi-threaded environment.

I am still testing it end to end, sending it out for a quick review

@@ -42,6 +42,8 @@ func (c LocalExecutor) RunWithStdout(name string, args ...string) (string, error
// RemoteExecutor as the name implies runs commands usign SSH on remote host
type RemoteExecutor struct {
Client ssh.Client
// host name for debugging purposes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit :
This is generic enough and can be used to log info other than host name. I am anticipating this functionality to get updated for ssh tunneling as well and we may want to log that info too.
Maybe just update the comment to indicate so ?

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

Successfully merging this pull request may close these issues.

2 participants