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

Regression: SSHKit 1.7.0 removes command completion status from logs #226

Closed
mattbrictson opened this issue Mar 2, 2015 · 3 comments · Fixed by #227
Closed

Regression: SSHKit 1.7.0 removes command completion status from logs #226

mattbrictson opened this issue Mar 2, 2015 · 3 comments · Fixed by #227

Comments

@mattbrictson
Copy link
Member

In SSHKit 1.6.0 the successful completion status of each command was logged, like this:

INFO [b02151f4] Finished in 0.141 seconds with exit status 0 (successful).

In SSHKit 1.7.0 these log messages are gone. SSHKit 1.7.0 logs the command but never logs the "Finished" message.

This regression is due to this commit: aa278db#diff-6285ece7ab8d7c6b765599fa5ee02b01

Before, the exit_status was updated first, and then the command was logged, like this:

cmd.exit_status = data.read_long
output << cmd

Now in 1.7.0, the order is flipped, such that the command is logged before the status is updated:

output << cmd
cmd.exit_status = data.read_long

As a result, the logger never receives the command with the exit status. This is very important information that is now missing from the log output.

@leehambley
Copy link
Member

See v1.7.1, a quick report, and following fix, and great quality fix at that.. just pushed a patch release with your changes

@leehambley
Copy link
Member

@mattbrictson
Copy link
Member Author

Thanks! 😃

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 a pull request may close this issue.

2 participants