Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Configure log_level from within configuration block #229

Open
TheNotary opened this issue Jun 3, 2016 · 1 comment
Open

Configure log_level from within configuration block #229

TheNotary opened this issue Jun 3, 2016 · 1 comment
Assignees
Labels

Comments

@TheNotary
Copy link
Contributor

Looks like when the logging system was upgraded, the ability to set the default log level was lost. It would be handy to be able to set the default log level (if you wanted it to be quiet for instance, to :fatal) from within the configuration block.

test_master_bot = Cinch::Bot.new do
    configure do |c|
      c.nick = "testc"
      c.server = "127.0.0.1"
      c.channels = [ENV['irc_channel']]
      # c.verbose = false # lost
      c.log_level = :fatal
    end
  end
@bougyman
Copy link
Contributor

The PR for this will be tested today.

@bougyman bougyman self-assigned this May 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants