summaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-04-24 15:43:42 +0200
committergjoranv <gv@verizonmedia.com>2020-04-25 02:22:56 +0200
commitee9e892838733da49d5ea2b74e456751c05c3f18 (patch)
treecbe13cfe4e3579110c2751826f5701d93134f953 /vespaclient-container-plugin
parent816e0e5dcd0987e8be4e3ea66402c83b770dd467 (diff)
LogLevel.WARNING -> Level.WARNING
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java2
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ClientFeederV3.java4
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java4
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedReplyReader.java2
4 files changed, 6 insertions, 6 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
index b45bd0f4e9f..ccd2d80efb2 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
@@ -239,7 +239,7 @@ public class RestApi extends LoggingRequestHandler {
RestUri.apiErrorCodes.PARSER_ERROR);
}
catch (RuntimeException systemException) {
- log.log(LogLevel.WARNING, "Internal runtime exception during Document V1 request handling", systemException);
+ log.log(Level.WARNING, "Internal runtime exception during Document V1 request handling", systemException);
return Response.createErrorResponse(500, Exceptions.toMessageString(systemException),
restUri,
RestUri.apiErrorCodes.UNSPECIFIED);
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ClientFeederV3.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ClientFeederV3.java
index 6bb74e98fbd..859b763ab9d 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ClientFeederV3.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ClientFeederV3.java
@@ -144,7 +144,7 @@ class ClientFeederV3 {
} catch (InterruptedException e) {
// NOP, just terminate
} catch (Throwable e) {
- log.log(LogLevel.WARNING, "Unhandled exception while feeding: " + Exceptions.toMessageString(e), e);
+ log.log(Level.WARNING, "Unhandled exception while feeding: " + Exceptions.toMessageString(e), e);
} finally {
replies.add(createOperationStatus("-", "-", ErrorCode.END_OF_FEED, false, null));
}
@@ -183,7 +183,7 @@ class ClientFeederV3 {
message = getNextMessage(operationId.get(), requestInputStream, settings);
} catch (Exception e) {
if (log.isLoggable(LogLevel.WARNING)) {
- log.log(LogLevel.WARNING, Exceptions.toMessageString(e));
+ log.log(Level.WARNING, Exceptions.toMessageString(e));
}
metric.add(MetricNames.PARSE_ERROR, 1, null);
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java
index 502ddcddc9c..05a64d633a4 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java
@@ -116,11 +116,11 @@ public class FeedHandlerV3 extends LoggingRequestHandler {
return clientFeederV3.handleRequest(request);
} catch (UnknownClientException uce) {
String msg = Exceptions.toMessageString(uce);
- log.log(LogLevel.WARNING, msg);
+ log.log(Level.WARNING, msg);
return new ErrorHttpResponse(com.yahoo.jdisc.http.HttpResponse.Status.BAD_REQUEST, msg);
} catch (Exception e) {
String msg = "Could not initialize document parsing: " + Exceptions.toMessageString(e);
- log.log(LogLevel.WARNING, msg);
+ log.log(Level.WARNING, msg);
return new ErrorHttpResponse(com.yahoo.jdisc.http.HttpResponse.Status.INTERNAL_SERVER_ERROR, msg);
}
}
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedReplyReader.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedReplyReader.java
index 7fb9d019e6c..5c0c4ffaf3d 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedReplyReader.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedReplyReader.java
@@ -62,7 +62,7 @@ public class FeedReplyReader implements ReplyHandler {
context.feedReplies.put(new OperationStatus(message, context.docId, status, isConditionNotMet, traceMessage));
} catch (InterruptedException e) {
- log.log(LogLevel.WARNING,
+ log.log(Level.WARNING,
"Interrupted while enqueueing result from putting document with id: " + context.docId);
Thread.currentThread().interrupt();
}