lib/trifle/logger/tracer/hash.rb in trifle-logger-0.2.2 vs lib/trifle/logger/tracer/hash.rb in trifle-logger-0.3.0

- old
+ new

@@ -8,18 +8,22 @@ def initialize(key:, meta: nil, config: nil) @key = key @meta = meta @config = config + set_defaults! + + trace("Tracer has been initialized for #{key}") + @reference = liftoff.first + end + + def set_defaults! @data = [] @tags = [] @artifacts = [] @state = :running @ignore = false @result_prefix = '=> ' - - trace("Tracer has been initialized for #{key}") - @reference = liftoff.first end def config @config || Trifle::Logger.default end