Class: Fluent::Plugin::JfrogMetricsInput::TaskObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/in_jfrog_metrics.rb

Instance Method Summary collapse

Instance Method Details

#update(time, result, e) ⇒ Object



148
149
150
151
152
153
154
# File 'lib/fluent/plugin/in_jfrog_metrics.rb', line 148

def update(time, result, e)
  if result
    $logger.info("Timer task Execution successfully returned: '#{result}' at: #{time}")
  else
    $logger.error("Timer task Execution failed with error: #{e} at: #{time}")
  end
end