Chef

more informative message for info log on package upgrade

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.5.2
  • Fix Version/s: 0.5.4
  • Component/s: Chef Client
  • Labels:
    None

Description

With the php5 package not currently installed, this message is displayed for the package resource[1]:

[Mon, 02 Feb 2009 02:53:58 -0700] INFO: Upgrading package[php5] version from to 5.2.4-2ubuntu5.4

This could be more informative:

[Mon, 02 Feb 2009 02:53:58 -0700] INFO: Upgrading package[php5] version from uninstalled to 5.2.4-2ubuntu5.4

Especially if folks are doing log management, and checking when chef is installing new packages on the system, for example:

grep uninstalled /var/log/chef/client.log

[1] resource:
package "php5" do
action :upgrade
end

Activity

Hide
Joshua Timberman added a comment - 13/Feb/09 3:13 AM
Show
Joshua Timberman added a comment - 13/Feb/09 3:13 AM pull request sent for http://github.com/jtimberman/chef/tree/chef-107
Hide
Adam Jacob added a comment - 13/Feb/09 7:56 PM

This is merged - Josh, I updated your fix to not alter the actual package version and to include a spec. You can see my changes at e0eae4f

Show
Adam Jacob added a comment - 13/Feb/09 7:56 PM This is merged - Josh, I updated your fix to not alter the actual package version and to include a spec. You can see my changes at e0eae4f

People

Vote (0)
Watch (0)

Dates

  • Created:
    08/Feb/09 4:14 PM
    Updated:
    13/Feb/09 7:56 PM
    Resolved:
    13/Feb/09 3:13 AM