diff options
Diffstat (limited to 'lib/kernel/src/logger_server.erl')
-rw-r--r-- | lib/kernel/src/logger_server.erl | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/kernel/src/logger_server.erl b/lib/kernel/src/logger_server.erl index c58edf51f8..f123eec8dd 100644 --- a/lib/kernel/src/logger_server.erl +++ b/lib/kernel/src/logger_server.erl @@ -22,8 +22,7 @@ -behaviour(gen_server). %% API --export([start_link/0, set_proxy_ref/1, get_proxy_ref/1, - add_handler/3, remove_handler/1, +-export([start_link/0, add_handler/3, remove_handler/1, add_filter/2, remove_filter/2, set_module_level/2, unset_module_level/0, unset_module_level/1, cache_module_level/1, @@ -52,14 +51,6 @@ start_link() -> gen_server:start_link({local, ?SERVER}, ?MODULE, [], []). --spec set_proxy_ref(logger_olp:olp_ref()) -> ok. -set_proxy_ref(ProxyRef) -> - call({set_proxy_ref,ProxyRef}). - --spec get_proxy_ref(ets:tid()) -> logger_olp:olp_ref(). -get_proxy_ref(Tid) -> - ets:lookup_element(Tid,proxy_ref,2). - add_handler(Id,Module,Config0) -> try {check_id(Id),check_mod(Module)} of {ok,ok} -> @@ -319,10 +310,7 @@ handle_call({set_module_level,Modules,Level}, _From, #state{tid=Tid}=State) -> {reply,Reply,State}; handle_call({unset_module_level,Modules}, _From, #state{tid=Tid}=State) -> Reply = logger_config:unset_module_level(Tid,Modules), - {reply,Reply,State}; -handle_call({set_proxy_ref,ProxyRef},_From,#state{tid=Tid}=State) -> - true = ets:insert(Tid,{proxy_ref,ProxyRef}), - {reply,ok,State}. + {reply,Reply,State}. handle_cast({async_req_reply,_Ref,_Reply} = Reply,State) -> call_h_reply(Reply,State); |