lib/td/logger/tdlog.rb in td-logger-0.2.2 vs lib/td/logger/tdlog.rb in td-logger-0.2.3
- old
+ new
@@ -16,20 +16,20 @@
require 'logger'
require 'td/client'
@tag = tag
@auto_create_table = auto_create_table
- @logger = ::Logger.new(STDOUT)
+ @logger = ::Logger.new(STDERR)
@client = TreasureData::Client.new(apikey)
@mutex = Mutex.new
@cond = ConditionVariable.new
@map = {} # (db,table) => buffer:String
@queue = []
@chunk_limit = 8*1024*1024
- @flush_interval = 60
+ @flush_interval = 300
@retry_wait = 1.0
@retry_limit = 8
@finish = false
@next_time = Time.now.to_i + @flush_interval