diff options
author | Siri Hansen <[email protected]> | 2019-01-11 11:46:13 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2019-01-16 09:59:24 +0100 |
commit | c940695f85063095e26aa0475b5687e6378ecb52 (patch) | |
tree | c50961164fee3da95c1eee684ca22af85a7a2077 | |
parent | 48cb63e5ba6ca42c180e6471f393254acfe322ec (diff) | |
download | otp-c940695f85063095e26aa0475b5687e6378ecb52.tar.gz otp-c940695f85063095e26aa0475b5687e6378ecb52.tar.bz2 otp-c940695f85063095e26aa0475b5687e6378ecb52.zip |
[logger] Remove some unused variable warnings
-rw-r--r-- | lib/kernel/test/logger_olp_SUITE.erl | 2 | ||||
-rw-r--r-- | lib/kernel/test/logger_proxy_SUITE.erl | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/kernel/test/logger_olp_SUITE.erl b/lib/kernel/test/logger_olp_SUITE.erl index 8ba66e5a03..d9ec00f5ee 100644 --- a/lib/kernel/test/logger_olp_SUITE.erl +++ b/lib/kernel/test/logger_olp_SUITE.erl @@ -56,7 +56,7 @@ all() -> %%%----------------------------------------------------------------- %%% Test cases idle_timer(_Config) -> - {ok,Pid,Olp} = logger_olp:start_link(?MODULE,?MODULE,self(),#{}), + {ok,_Pid,Olp} = logger_olp:start_link(?MODULE,?MODULE,self(),#{}), [logger_olp:load(Olp,{msg,N}) || N<-lists:seq(1,3)], timer:sleep(?IDLE_DETECT_TIME*2), [{load,{msg,1}}, diff --git a/lib/kernel/test/logger_proxy_SUITE.erl b/lib/kernel/test/logger_proxy_SUITE.erl index 3b952656dc..777531e4ed 100644 --- a/lib/kernel/test/logger_proxy_SUITE.erl +++ b/lib/kernel/test/logger_proxy_SUITE.erl @@ -182,7 +182,7 @@ config(cleanup,_Config) -> _ = logger:set_logger_proxy(logger_proxy:get_default_config()), ok. -restart_after(Config) -> +restart_after(_Config) -> Restart = 3000, ok = logger:update_proxy_config(#{overload_kill_enable => true, overload_kill_qlen => 10, @@ -197,7 +197,7 @@ restart_after(Config) -> [logger_proxy ! {log,debug, [{test_case,?FUNCTION_NAME}, {line,?LINE}], - L2=?LOC} || _ <- lists:seq(1,100)] + ?LOC} || _ <- lists:seq(1,100)] end), receive {'DOWN',Ref,_,_,_Reason} -> @@ -214,13 +214,13 @@ restart_after(Config) -> ProxyConfig = logger_olp:get_opts(logger_proxy), ok. -restart_after(cleanup,Config) -> +restart_after(cleanup,_Config) -> _ = logger:set_logger_proxy(logger_proxy:get_default_config()), ok. %% Test that system_logger flag is set to logger process if %% logger_proxy terminates for other reason than overloaded. -terminate(Config) -> +terminate(_Config) -> Logger = whereis(logger), Proxy = whereis(logger_proxy), Proxy = erlang:system_info(system_logger), @@ -255,7 +255,7 @@ poll_restarted(N) -> case whereis(logger_proxy) of undefined -> poll_restarted(N-1); - Pid -> + _Pid -> ok end. @@ -268,7 +268,7 @@ ensure(Match) -> receive {logged,Meta} -> case maps:with(maps:keys(Match),Meta) of Match -> ok; - NoMatch -> {error,Match,Meta,test_server:messages_get()} + _NoMatch -> {error,Match,Meta,test_server:messages_get()} end after ?ENSURE_TIME -> {error,Match,test_server:messages_get()} end. |