diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-02 13:46:55 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-02 13:55:14 -0600 |
| commit | 338d323dbfd3f53d471abbf7baea94d42a5198d4 (patch) | |
| tree | d723aadc00939ebcea7117964df6ce8e277531e5 /lib/license/management/shell.rb | |
| parent | 2d200e2bcecb91eadc5ee211f5bb65aafa645054 (diff) | |
Add option to change the log level
* Add CHANGELOG entry and bump version
* Change default log level to `warn`
* Log stderr output if exit status is not successful
Diffstat (limited to 'lib/license/management/shell.rb')
| -rw-r--r-- | lib/license/management/shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/license/management/shell.rb b/lib/license/management/shell.rb index 903d0b6..a1a1412 100644 --- a/lib/license/management/shell.rb +++ b/lib/license/management/shell.rb @@ -16,7 +16,7 @@ module License stdout, stderr, status = Open3.capture3(env, expanded_command) logger.debug(stdout) unless stdout.nil? || stdout.empty? - logger.error(stderr) unless stderr.nil? || stderr.empty? + logger.error(stderr) unless status.success? [stdout, stderr, status] end |
