HADOOP-17803. Remove WARN logging from LoggingAuditor when executing a request outside an audit span (#3207)

Followup to HADOOP-17511. "Add audit/telemetry logging to S3A connector"

Contributed by Mehakmeet Singh
This commit is contained in:
Mehakmeet Singh 2021-07-16 16:17:05 +05:30 committed by GitHub
parent d0ee065cc4
commit f6f105c7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,11 +411,8 @@ public <T extends AmazonWebServiceRequest> T requestCreated(
public <T extends AmazonWebServiceRequest> T beforeExecution(
final T request) {
String error = "executing a request outside an audit span "
+ analyzer.analyze(request);
LOG.warn("{} {}",
getSpanId(), error);
final String unaudited = getSpanId() + " "
+ UNAUDITED_OPERATION + " " + error;
if (isRequestNotAlwaysInSpan(request)) {