lib/td/logger/agent/rails/config.rb in td-logger-0.3.0 vs lib/td/logger/agent/rails/config.rb in td-logger-0.3.1
- old
+ new
@@ -24,17 +24,19 @@
if conf.has_key?('auto_create_table')
@auto_create_table = !!conf['auto_create_table']
else
@auto_create_table = true
end
+
+ @debug_mode = !!conf['debug_mode']
end
@access_log_table = conf['access_log_table']
end
attr_reader :agent_host, :agent_port, :tag
attr_reader :apikey, :database, :auto_create_table
- attr_reader :access_log_table
+ attr_reader :access_log_table, :debug_mode
def agent_mode?
@agent_host != nil
end