Skip to content

Commit 8a8e0f3

Browse files
committed
Change the information that is displayed when shelling out.
In `warn` mode, Omnibus will only display warnings/deprecations; you will not see any build commands or output. In `info` mode, Omnibus will display the commands and environment that are being used; you will not see the output from the build (unless it fails). In `debug` mode, Omnibus will display the commands, environment, and output (livestream) from commands.
1 parent d7b6292 commit 8a8e0f3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Unreleased
1111
- Remove the use of `Omnibus.root` in `BuildVersion#initializer`. This removes the many deprecation warnings that print on each software load.
1212
- Output the current command in debug output when shelling out
1313
- Output the current environment in debug output when shelling out
14+
- Change the information that is displayed at different log levels with respect to shelling out. In `warn` mode, Omnibus will only display warnings/deprecations; you will not see any build commands or output. In `info` mode, Omnibus will display the commands and environment that are being used; you will not see the output from the build (unless it fails). In `debug` mode, Omnibus will display the commands, environment, and output (livestream) from commands.
1415

1516

1617
v3.1.0 (May 14, 2014)

lib/omnibus/util.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ def shellout(*args)
5050

5151
# Log any environment options given
5252
unless options[:environment].empty?
53-
Omnibus.logger.debug { 'Environment:' }
53+
Omnibus.logger.info { 'Environment:' }
5454
options[:environment].each do |key, value|
55-
Omnibus.logger.debug { " #{key.to_s.upcase}=#{value.inspect}" }
55+
Omnibus.logger.info { " #{key.to_s.upcase}=#{value.inspect}" }
5656
end
5757
end
5858

5959
# Log the actual command
60-
Omnibus.logger.debug { "$ #{args.join(' ')}" }
60+
Omnibus.logger.info { "$ #{args.join(' ')}" }
6161

6262
cmd = Mixlib::ShellOut.new(*args, options)
6363
cmd.run_command

0 commit comments

Comments
 (0)