Skip to content

Conversation

@suyograo
Copy link
Contributor

@suyograo suyograo commented Dec 1, 2016

Logging changes in 5.0 broke this plugin. We now use info and debug
to log output of the exec'd commands

Fixes #10

Logging changes in 5.0 broke this plugin. We now use info and debug
to log output of the exec'd commands

Fixes #10
Open3.popen3(cmd) do |stdin, stdout, stderr|
if @logger.debug?
@logger.pipe(stdout => :debug, stderr => :debug)
@logger.debug(stdout => :debug, stderr => :debug)
Copy link
Contributor

Choose a reason for hiding this comment

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

should it be something like this? (I did not test it)

 @logger.debug(:stdout => stdout.read, :stderr => stderr.read)

The stdout and the stderr should be IO object and we need to read them to display the messages.

@ph
Copy link
Contributor

ph commented Dec 1, 2016

LGTM

@suyograo suyograo merged commit ba19ac0 into master Dec 1, 2016
@suyograo suyograo deleted the fix/10 branch December 1, 2016 02:32
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.

3 participants