Skip to content
Snippets Groups Projects
Commit 3a4e58b2 authored by TheNotary's avatar TheNotary
Browse files

Makes it clear what the option for setting log levels does by naming conf...

Makes it clear what the option for setting log levels does by naming conf value to default_logger_level
parent 7ecc5254
No related branches found
No related tags found
No related merge requests found
......@@ -443,3 +443,12 @@ Default value
Description
: Give up connecting after this amount of seconds.
## default_logger_level
Type
: Symbol
Default value
: `:debug`
Description
: Modify the log level of the default logger, for instance, the bot will log very little if you set this value to `:fatal`.
......@@ -335,7 +335,7 @@ module Cinch
@config = Configuration::Bot.new
@loggers = LoggerList.new
@loggers << Logger::FormattedLogger.new($stderr, level: @config.log_level)
@loggers << Logger::FormattedLogger.new($stderr, level: @config.default_logger_level)
@handlers = HandlerList.new
@semaphores_mutex = Mutex.new
@semaphores = Hash.new { |h, k| h[k] = Mutex.new }
......
......@@ -8,7 +8,7 @@ module Cinch
:realname, :user, :messages_per_second, :server_queue_size,
:strictness, :message_split_start, :message_split_end,
:max_messages, :plugins, :channels, :encoding, :reconnect, :max_reconnect_delay,
:local_host, :timeouts, :ping_interval, :delay_joins, :dcc, :shared, :sasl, :log_level]
:local_host, :timeouts, :ping_interval, :delay_joins, :dcc, :shared, :sasl, :default_logger_level]
# (see Configuration.default_config)
def self.default_config
......@@ -40,7 +40,7 @@ module Cinch
:dcc => Configuration::DCC.new,
:sasl => Configuration::SASL.new,
:shared => {},
:log_level => :debug
:default_logger_level => :debug
}
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment