-
Notifications
You must be signed in to change notification settings - Fork 24
Conversation
383b2a0
to
241dcc0
Compare
241dcc0
to
95aaf60
Compare
lib/facter.rb
Outdated
@@ -202,6 +203,7 @@ def to_hash | |||
# @api public | |||
def trace? | |||
LegacyFacter.trace? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this call needed anymore?
@@ -212,6 +214,7 @@ def trace? | |||
# @api public | |||
def trace(bool) | |||
LegacyFacter.trace(bool) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this call needed anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LegacyFacter.log_exception is still used in other classes like collection.rb, so setting trace in LegacyFacter is still needed.
d9f85e2
to
c8dfde8
Compare
c8dfde8
to
0381e5d
Compare
spec/facter/facter_spec.rb
Outdated
describe '#log_exception' do | ||
context 'when trace options is true' do | ||
before do | ||
Facter.instance_variable_set(:@trace, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not set it using Facter.trace
method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also i think it should be set to false, after running the test
0381e5d
to
3b935d7
Compare
No description provided.