mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Rename ejabberd_loglevel:get/0 to get_default, and add a more general get (EJAB-225)
API change: ejabberd_loglevel:get/0 renamed to ejabberd_loglevel:get_default/0
This commit is contained in:
parent
651ee5eb19
commit
abdbb347eb
@ -33,6 +33,7 @@
|
||||
|
||||
-export([set/1,
|
||||
get/0,
|
||||
get_default/0,
|
||||
set_custom/2,
|
||||
clear_custom/0,
|
||||
clear_custom/1]).
|
||||
@ -63,6 +64,9 @@
|
||||
function = debug_msg, event_type = info_msg, msg_prefix = "D"}]).
|
||||
|
||||
get() ->
|
||||
ejabberd_logger:get().
|
||||
|
||||
get_default() ->
|
||||
{DefaultLevel, _CustomLevels} = ejabberd_logger:get(),
|
||||
case lists:keysearch(DefaultLevel, #loglevel.ordinal, ?LOG_LEVELS) of
|
||||
{value, Result = #loglevel{}} ->
|
||||
|
Loading…
Reference in New Issue
Block a user