Occured at
89 puts "::git branch #{options[:branch]} #{tag_project.git_rev}" 90 %x[git branch #{options[:branch]} #{tag_project.git_rev}] 91 puts "::git checkout #{options[:branch]}" 92 %x[git checkout #{options[:branch]}] 93 puts "::git push origin #{options[:branch]}" 94 %x[git push origin #{options[:branch]}]
Why
You don't want to clutter your logs with raw puts, pp, or p. Output using
p will not always appear in your logs, nor will it inherit from any log config
you may have (to add information such as the timestamp).
How to fix
In a Rails application
Use Rails.logger instead.
In Ruby code
Just use the Logger class.
In unit and integration tests
This is often a sign that you are missing some asserts and other checks.
More info
- Rails logger
- Stdlib logger
- Better logs for Rails using lograge .
- Fully configurable logs for any Ruby application using log4r (look what Mitchell Hasimoto of Vagrant fame says about it ).
Know a good reference on this subject ? Tell us about it!
