lib/splash/config/flush.rb in prometheus-splash-0.8.3 vs lib/splash/config/flush.rb in prometheus-splash-0.8.4
- old
+ new
@@ -14,11 +14,11 @@
def flush_backend(options ={})
config = get_config
self.extend Splash::Backends
self.extend Splash::Loggers
log = get_logger
- log.info "Splash backend flushing"
- name = (options[:name])? options[:name] : :execution_trace
+ name = (options[:name])? options[:name].to_sym : :execution_trace
+ log.info "Splash backend #{name.to_s} flushing"
backend = get_backend name
if backend.flush then
return { :case => :quiet_exit, :more => "Splash backend #{name.to_s} flushed" }
else
return { :case => :configuration_error, :more => "Splash backend #{name.to_s} can't be flushed" }