Class: MoesifHelpers
- Inherits:
-
Object
- Object
- MoesifHelpers
- Defined in:
- lib/moesif_aws_lambda/moesif_helpers.rb
Instance Method Summary collapse
-
#initialize(debug) ⇒ MoesifHelpers
constructor
A new instance of MoesifHelpers.
- #log_debug(message) ⇒ Object
Constructor Details
#initialize(debug) ⇒ MoesifHelpers
Returns a new instance of MoesifHelpers.
5 6 7 |
# File 'lib/moesif_aws_lambda/moesif_helpers.rb', line 5 def initialize debug @debug = debug end |
Instance Method Details
#log_debug(message) ⇒ Object
9 10 11 12 13 |
# File 'lib/moesif_aws_lambda/moesif_helpers.rb', line 9 def log_debug() if @debug puts("#{Time.now.to_s} [Moesif Middleware] PID #{Process.pid} TID #{Thread.current.object_id} #{}") end end |