aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2019-10-31 15:44:46 +0100
committerTor Brede Vekterli <vekterli@verizonmedia.com>2019-10-31 15:44:46 +0100
commit6fcb031952ed2d58f94294484681c078b4f13b26 (patch)
tree26fd2adf52c4539d48b48fa24161118e1ffc1bd1
parent2caa198f03f94ce82dd3bac879b03a2084a781c7 (diff)
Log warning on internal exception during Document V1 request handling
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java2
1 files changed, 2 insertions, 0 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 7e572dae941..3b463e1af92 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
@@ -27,6 +27,7 @@ import com.yahoo.document.select.parser.ParseException;
import com.yahoo.documentapi.messagebus.MessageBusDocumentAccess;
import com.yahoo.documentapi.messagebus.MessageBusParams;
import com.yahoo.documentapi.messagebus.loadtypes.LoadTypeSet;
+import com.yahoo.log.LogLevel;
import com.yahoo.metrics.simple.MetricReceiver;
import com.yahoo.text.Text;
import com.yahoo.vespa.config.content.LoadTypeConfig;
@@ -238,6 +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);
return Response.createErrorResponse(500, Exceptions.toMessageString(systemException),
restUri,
RestUri.apiErrorCodes.UNSPECIFIED);