Commit 16c5257 1 parent cfcb128 commit 16c5257 Copy full SHA for 16c5257
File tree 1 file changed +4
-0
lines changed
plugins/repository-azure/src/internalClusterTest/java/org/opensearch/repositories/azure
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 39
39
import com .azure .storage .common .implementation .Constants ;
40
40
import com .azure .storage .common .policy .RequestRetryOptions ;
41
41
import com .azure .storage .common .policy .RetryPolicyType ;
42
+ import org .apache .logging .log4j .LogManager ;
43
+ import org .apache .logging .log4j .Logger ;
42
44
import org .opensearch .common .SuppressForbidden ;
43
45
import org .opensearch .common .regex .Regex ;
44
46
import org .opensearch .common .settings .MockSecureSettings ;
@@ -188,6 +190,7 @@ protected String requestUniqueId(final HttpExchange exchange) {
188
190
@ SuppressForbidden (reason = "this test uses a HttpServer to emulate an Azure endpoint" )
189
191
private static class AzureHTTPStatsCollectorHandler extends HttpStatsCollectorHandler {
190
192
193
+ private static final Logger testLogger = LogManager .getLogger (AzureHTTPStatsCollectorHandler .class );
191
194
private static final Pattern listPattern = Pattern .compile ("GET /[a-zA-Z0-9]+\\ ??.+" );
192
195
private static final Pattern getPattern = Pattern .compile ("GET /[^?/]+/[^?/]+\\ ??.*" );
193
196
@@ -197,6 +200,7 @@ private AzureHTTPStatsCollectorHandler(HttpHandler delegate) {
197
200
198
201
@ Override
199
202
protected void maybeTrack (String request , Headers headers ) {
203
+ testLogger .info (request , headers );
200
204
if (getPattern .matcher (request ).matches ()) {
201
205
trackRequest ("GetBlob" );
202
206
} else if (Regex .simpleMatch ("HEAD /*/*" , request )) {
You can’t perform that action at this time.
0 commit comments