On Fri, Apr 23, 2010 at 9:48 AM, James Turnbull <[email protected]>wrote:
> > Signed-off-by: James Turnbull <[email protected]> > --- > lib/puppet/network/format_handler.rb | 2 +- > spec/unit/network/format_handler.rb | 5 +++-- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/lib/puppet/network/format_handler.rb > b/lib/puppet/network/format_handler.rb > index ea8cf35..dce1bca 100644 > --- a/lib/puppet/network/format_handler.rb > +++ b/lib/puppet/network/format_handler.rb > @@ -142,7 +142,7 @@ module Puppet::Network::FormatHandler > list.delete(preferred_format) > list.unshift(preferred_format) > else > - Puppet.warning "Value of 'preferred_serialization_format' > (#{preferred_format}) is invalid for #{friendly_name}, using default > (#{list.first})" > + Puppet.debug "Value of 'preferred_serialization_format' > (#{preferred_format}) is invalid for #{friendly_name}, using default > (#{list.first})" > end > list > end > diff --git a/spec/unit/network/format_handler.rb > b/spec/unit/network/format_handler.rb > index 110effe..7fb065b 100755 > --- a/spec/unit/network/format_handler.rb > +++ b/spec/unit/network/format_handler.rb > @@ -73,8 +73,9 @@ describe Puppet::Network::FormatHandler do > it "should still return the default format first" do > FormatTester.supported_formats.should == [:two, :one] > end > - it "should log a warning" do > - Puppet.expects(:warning) > + it "should log a debug message" do > + Puppet.expects(:debug).with("Value of > 'preferred_serialization_format' (unsupported) is invalid for FormatTester, > using default (two)") > + Puppet.expects(:debug).with("FormatTester supports > formats: one two; using two") > FormatTester.supported_formats > end > end > -- > 1.6.6.1 > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-dev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > > + eleventy-billion -- nigel -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
