Skip to content

Commit

Permalink
fixed error log message which was no error but debug
Browse files Browse the repository at this point in the history
* updated to OpenJ9 0.11.0 as base java runtime

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
  • Loading branch information
thjaeckle committed Dec 6, 2018
1 parent d057ac9 commit 4361bd1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Expand Up @@ -24,10 +24,12 @@
import org.eclipse.ditto.json.JsonParseException;
import org.eclipse.ditto.json.JsonParseOptions;
import org.eclipse.ditto.json.JsonValue;
import org.eclipse.ditto.model.base.exceptions.DittoRuntimeException;
import org.eclipse.ditto.model.base.headers.DittoHeaders;
import org.eclipse.ditto.model.base.json.JsonSchemaVersion;
import org.eclipse.ditto.protocoladapter.HeaderTranslator;
import org.eclipse.ditto.services.gateway.endpoints.HttpRequestActor;
import org.eclipse.ditto.services.utils.akka.LogUtil;
import org.eclipse.ditto.services.utils.protocol.ProtocolAdapterProvider;
import org.eclipse.ditto.services.utils.protocol.ProtocolConfigReader;
import org.eclipse.ditto.signals.commands.base.Command;
Expand Down Expand Up @@ -96,7 +98,13 @@ protected AbstractRoute(final ActorRef proxyActor, final ActorSystem actorSystem

materializer = ActorMaterializer.create(ActorMaterializerSettings.create(actorSystem)
.withSupervisionStrategy((Function<Throwable, Supervision.Directive>) exc -> {
LOGGER.error("Exception during materialization of HTTP request: {}", exc.getMessage(), exc);
if (exc instanceof DittoRuntimeException) {
LogUtil.logWithCorrelationId(LOGGER, (DittoRuntimeException) exc, logger ->
logger.debug("DittoRuntimeException during materialization of HTTP request: [{}] {}",
exc.getClass().getSimpleName(), exc.getMessage()));
} else {
LOGGER.warn("Exception during materialization of HTTP request: {}", exc.getMessage(), exc);
}
return Supervision.stop(); // in any case, stop!
}
), actorSystem);
Expand Down
2 changes: 1 addition & 1 deletion services/pom.xml
Expand Up @@ -47,7 +47,7 @@
<docker.registry>docker.io</docker.registry>
<docker.repository>${docker.registry}/eclipse</docker.repository>
<docker.image.additional.tag/>
<docker.image.jdk>docker.io/adoptopenjdk/openjdk8-openj9:x86_64-alpine-jdk8u181-b13_openj9-0.9.0-slim</docker.image.jdk>
<docker.image.jdk>docker.io/adoptopenjdk/openjdk8-openj9:x86_64-alpine-jdk8u192-b12_openj9-0.11.0-slim</docker.image.jdk>
<docker.image.port>8080</docker.image.port>

<policies.docker.image.name>ditto-policies</policies.docker.image.name>
Expand Down
2 changes: 1 addition & 1 deletion services/src/Dockerfile
@@ -1,4 +1,4 @@
FROM adoptopenjdk/openjdk8-openj9:x86_64-alpine-jdk8u181-b13_openj9-0.9.0-slim
FROM adoptopenjdk/openjdk8-openj9:x86_64-alpine-jdk8u192-b12_openj9-0.11.0-slim

ARG MAVEN_REPO=https://repo.eclipse.org/content/repositories/ditto/org/eclipse/ditto/
ARG SERVICE_STARTER
Expand Down

0 comments on commit 4361bd1

Please sign in to comment.