cinchrb/cinch — Issue #59: Unintended log output
Author: hirataya
Created: 2012-01-24 15:31:07+00:00
State: open

Following message is shown even if loggers.level is set to higher one (such as :warn) in the block associated with Cinch::Bot.new. The reason is that @loggers.level is overwritten just before registering on-connect handler in Cinch::Bot#initialize.

```
[2012/01/25 00:06:20.225] !! [on handler] Registering handler with pattern `#`, reacting on `connect`
```

```ruby
require "cinch"

bot = Cinch::Bot.new do
loggers.level = :warn # won't work
configure do |c|
c.server = "localhost"
c.port = 6690
c.channels = ["#FatechanMoe"]
end
end
bot.loggers.level = :warn # works!
bot.start
```