fix(ft): tune some logging levels

This commit is contained in:
Andrew Mayorov 2023-05-25 13:02:04 +03:00
parent 3278158c66
commit 75cf562c90
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
-include_lib("snabbkaffe/include/snabbkaffe.hrl"). -include_lib("snabbkaffe/include/snabbkaffe.hrl").
-include("src/emqx_s3.hrl"). -include("emqx_s3.hrl").
-export([ -export([
start_link/2, start_link/2,
@ -377,10 +377,10 @@ stop_http_pool(ProfileId, PoolName) ->
ok = ?tp(debug, "s3_stop_http_pool", #{pool_name => PoolName}). ok = ?tp(debug, "s3_stop_http_pool", #{pool_name => PoolName}).
do_start_http_pool(PoolName, HttpConfig) -> do_start_http_pool(PoolName, HttpConfig) ->
?SLOG(warning, #{msg => "s3_start_http_pool", pool_name => PoolName, config => HttpConfig}), ?SLOG(debug, #{msg => "s3_starting_http_pool", pool_name => PoolName, config => HttpConfig}),
case ehttpc_sup:start_pool(PoolName, HttpConfig) of case ehttpc_sup:start_pool(PoolName, HttpConfig) of
{ok, _} -> {ok, _} ->
?SLOG(warning, #{msg => "s3_start_http_pool_success", pool_name => PoolName}), ?SLOG(info, #{msg => "s3_start_http_pool_success", pool_name => PoolName}),
ok; ok;
{error, _} = Error -> {error, _} = Error ->
?SLOG(error, #{msg => "s3_start_http_pool_fail", pool_name => PoolName, error => Error}), ?SLOG(error, #{msg => "s3_start_http_pool_fail", pool_name => PoolName, error => Error}),