Class: Sqreen::DefaultCB

Inherits:
CB
  • Object
show all
Defined in:
lib/sqreen/default_cb.rb

Constant Summary

Constants inherited from CB

CB::DEFAULT_PRIORITY

Instance Attribute Summary

Attributes inherited from CB

#klass, #method, #overtimeable

Instance Method Summary collapse

Methods inherited from CB

#failing?, #framework, #initialize, #overtime!, #post?, #pre?, #priority, #to_s, #whitelisted?

Constructor Details

This class inherits a constructor from Sqreen::CB

Instance Method Details

#post(_rv, _inst, _args, _budget = nil, &_block) ⇒ Object



17
18
19
20
# File 'lib/sqreen/default_cb.rb', line 17

def post(_rv, _inst, _args, _budget = nil, &_block)
  # log "#{rv}"
  Sqreen.log.debug ">> #{@klass} #{@method} #{Thread.current}"
end

#pre(_inst, args, _budget = nil, &_block) ⇒ Object



11
12
13
14
15
# File 'lib/sqreen/default_cb.rb', line 11

def pre(_inst, args, _budget = nil, &_block)
  Sqreen.log.debug "<< #{@klass} #{@method} #{Thread.current}"
  Sqreen.log.debug args.join ' '
  # log params
end