Skip to content

Commit

Permalink
Log also the callback result
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Sep 15, 2020
1 parent 1cc7edc commit c33238e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/packages/src/modules/PackageCallbacks.rb
Expand Up @@ -75,7 +75,9 @@ def self.method_added(name)
hook = <<-HOOK
def #{name}_hook(*params)
log.info("Starting callback #{self}::#{name}")
#{name}_without_hook(*params)
@result = #{name}_without_hook(*params)
log.info("Callback #{self}::#{name} returned: #{@result.inspect}")
@result
end
HOOK
# __FILE__ and __LINE__ are used in a backtrace
Expand Down

0 comments on commit c33238e

Please sign in to comment.