@@ -141,10 +141,10 @@ get(Scheme, Host, Port, Path, Args) ->
141141% %
142142get (Scheme , Host , Port , Path , Args , Headers , HttpOpts ) ->
143143 URL = build_uri (Scheme , Host , Port , Path , Args ),
144- ? LOG_DEBUG (" GET ~ts " , [URL ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
144+ ? LOG_DEBUG (" GET ~ts " , [URL ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
145145 HttpOpts1 = ensure_timeout (HttpOpts ),
146146 Response = httpc :request (get , {URL , Headers }, HttpOpts1 , []),
147- ? LOG_DEBUG (" Response: ~tp " , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
147+ ? LOG_DEBUG (" Response: ~tp " , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
148148 parse_response (Response ).
149149
150150
@@ -179,10 +179,10 @@ post(Scheme, Host, Port, Path, Args, Body) ->
179179% %
180180post (Scheme , Host , Port , Path , Args , Headers , HttpOpts , Body ) ->
181181 URL = build_uri (Scheme , Host , Port , Path , Args ),
182- ? LOG_DEBUG (" POST ~ts [~tp ]" , [URL , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
182+ ? LOG_DEBUG (" POST ~ts [~tp ]" , [URL , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
183183 HttpOpts1 = ensure_timeout (HttpOpts ),
184184 Response = httpc :request (post , {URL , Headers , ? CONTENT_JSON , Body }, HttpOpts1 , []),
185- ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
185+ ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
186186 parse_response (Response ).
187187
188188
@@ -208,10 +208,10 @@ post(Scheme, Host, Port, Path, Args, Headers, HttpOpts, Body) ->
208208 Body :: string () | binary () | tuple ().
209209put (Scheme , Host , Port , Path , Args , Body ) ->
210210 URL = build_uri (Scheme , Host , Port , Path , Args ),
211- ? LOG_DEBUG (" PUT ~ts [~tp ]" , [URL , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
211+ ? LOG_DEBUG (" PUT ~ts [~tp ]" , [URL , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
212212 HttpOpts = ensure_timeout (),
213213 Response = httpc :request (put , {URL , [], ? CONTENT_URLENCODED , Body }, HttpOpts , []),
214- ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
214+ ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
215215 parse_response (Response ).
216216
217217
@@ -262,10 +262,10 @@ put(Scheme, Host, Port, Path, Args, Headers, Body) ->
262262 Body :: string () | binary () | tuple ().
263263put (Scheme , Host , Port , Path , Args , Headers , HttpOpts , Body ) ->
264264 URL = build_uri (Scheme , Host , Port , Path , Args ),
265- ? LOG_DEBUG (" PUT ~ts [~tp ] [~tp ]" , [URL , Headers , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
265+ ? LOG_DEBUG (" PUT ~ts [~tp ] [~tp ]" , [URL , Headers , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
266266 HttpOpts1 = ensure_timeout (HttpOpts ),
267267 Response = httpc :request (put , {URL , Headers , ? CONTENT_URLENCODED , Body }, HttpOpts1 , []),
268- ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
268+ ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
269269 parse_response (Response ).
270270
271271% % @public
@@ -304,10 +304,10 @@ delete(Scheme, Host, Port, PathSegments, Args, HttpOpts, Body) when is_list(Path
304304 delete (Scheme , Host , Port , Path , Args , HttpOpts , Body );
305305delete (Scheme , Host , Port , Path , Args , HttpOpts , Body ) ->
306306 URL = build_uri (Scheme , Host , Port , Path , Args ),
307- ? LOG_DEBUG (" DELETE ~ts [~tp ]" , [URL , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
307+ ? LOG_DEBUG (" DELETE ~ts [~tp ]" , [URL , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
308308 HttpOpts1 = ensure_timeout (HttpOpts ),
309309 Response = httpc :request (delete , {URL , [], ? CONTENT_URLENCODED , Body }, HttpOpts1 , []),
310- ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
310+ ? LOG_DEBUG (" Response: [~tp ]" , [Response ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
311311 parse_response (Response ).
312312
313313
@@ -323,7 +323,7 @@ maybe_configure_proxy() ->
323323 0 ->
324324 ? LOG_DEBUG (
325325 " HTTP client proxy is not configured" ,
326- #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
326+ #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
327327 ok ;
328328 _ ->
329329 HttpProxy = ? CONFIG_MODULE :get (http_proxy , ? CONFIG_MAPPING , Map ),
@@ -332,7 +332,7 @@ maybe_configure_proxy() ->
332332 ? LOG_DEBUG (
333333 " Configured HTTP proxy: ~tp , HTTPS proxy: ~tp , exclusions: ~tp " ,
334334 [HttpProxy , HttpsProxy , ProxyExclusions ],
335- #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
335+ #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
336336 _ = maybe_set_proxy (proxy , HttpProxy , ProxyExclusions ),
337337 _ = maybe_set_proxy (https_proxy , HttpsProxy , ProxyExclusions ),
338338 ok
@@ -368,7 +368,7 @@ maybe_set_proxy(Option, ProxyUrl, ProxyExclusions) ->
368368 ? LOG_DEBUG (
369369 " Configuring HTTP client's ~ts setting: ~tp , exclusions: ~tp " ,
370370 [Option , {Host , Port }, ProxyExclusions ],
371- #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
371+ #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
372372 httpc :set_option (Option , {{Host , Port }, ProxyExclusions })
373373 end .
374374
@@ -415,7 +415,7 @@ decode_body(?CONTENT_JSON, Body) ->
415415 " HTTP client could not decode a JSON payload "
416416 " (JSON parser returned an error): ~tp ." ,
417417 [Err ],
418- #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
418+ #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
419419 []
420420 end .
421421
@@ -428,15 +428,15 @@ decode_body(?CONTENT_JSON, Body) ->
428428-spec parse_response ({ok , integer (), string ()} | {error , any ()}) -> {ok , term ()} | {error , any ()}.
429429
430430parse_response ({error , Reason }) ->
431- ? LOG_DEBUG (" HTTP error ~tp " , [Reason ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
431+ ? LOG_DEBUG (" HTTP error ~tp " , [Reason ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
432432 {error , lists :flatten (io_lib :format (" ~tp " , [Reason ]))};
433433parse_response ({ok , {{_ ,200 ,_ }, Headers , Body }}) ->
434434 {ok , decode_body (proplists :get_value (" content-type" , Headers , ? CONTENT_JSON ), Body )};
435435parse_response ({ok ,{{_ ,201 ,_ }, Headers , Body }}) ->
436436 {ok , decode_body (proplists :get_value (" content-type" , Headers , ? CONTENT_JSON ), Body )};
437437parse_response ({ok ,{{_ ,204 ,_ }, _ , _ }}) -> {ok , []};
438438parse_response ({ok ,{{_Vsn ,Code ,_Reason },_ ,Body }}) ->
439- ? LOG_DEBUG (" HTTP Response (~tp ) ~ts " , [Code , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DIS }),
439+ ? LOG_DEBUG (" HTTP Response (~tp ) ~ts " , [Code , Body ], #{domain => ? RMQLOG_DOMAIN_PEER_DISC }),
440440 {error , integer_to_list (Code )}.
441441
442442% % @private
0 commit comments