@@ -48,7 +48,7 @@ HTTPClientResponse request(
48
48
scope void delegate (scope HTTPClientRequest) requester = cast (void delegate (scope HTTPClientRequest req))null
49
49
) @safe
50
50
{
51
- import vibe.core.log : logError ;
51
+ import vibe.core.log : logWarn ;
52
52
import vibe.http.client : requestHTTP;
53
53
import vibe.http.common : HTTPMethod;
54
54
@@ -62,7 +62,7 @@ HTTPClientResponse request(
62
62
},
63
63
httpClientSettings);
64
64
if (res.statusCode / 100 != 2 && ! expectedStatusCode(res.statusCode))
65
- logError (" %s %s failed; %s %s." , method, url, res.statusPhrase, res.statusCode);
65
+ logWarn (" %s %s failed; %s %s." , method, url, res.statusPhrase, res.statusCode);
66
66
return res;
67
67
}
68
68
@@ -72,7 +72,7 @@ void request(
72
72
scope void delegate (scope HTTPClientResponse) responder
73
73
) @safe
74
74
{
75
- import vibe.core.log : logError ;
75
+ import vibe.core.log : logWarn ;
76
76
import vibe.http.client : requestHTTP;
77
77
import vibe.http.common : HTTPMethod;
78
78
@@ -85,7 +85,7 @@ void request(
85
85
},
86
86
(scope res) {
87
87
if (res.statusCode / 100 != 2 && ! expectedStatusCode(res.statusCode))
88
- logError (" %s %s failed; %s %s." , method, url, res.statusPhrase, res.statusCode);
88
+ logWarn (" %s %s failed; %s %s." , method, url, res.statusPhrase, res.statusCode);
89
89
responder(res);
90
90
},
91
91
httpClientSettings
0 commit comments