From 203634b9983d36885317dad9fbfd565721a48fda Mon Sep 17 00:00:00 2001 From: Jan-Olav Eide Date: Mon, 8 Feb 2021 15:12:38 +0100 Subject: [PATCH] =?UTF-8?q?overlat=20til=20klienten=20=C3=A5=20logge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../felles/integrasjon/pdl/PdlDefaultErrorHandler.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/integrasjon/pdl-klient/src/main/java/no/nav/vedtak/felles/integrasjon/pdl/PdlDefaultErrorHandler.java b/integrasjon/pdl-klient/src/main/java/no/nav/vedtak/felles/integrasjon/pdl/PdlDefaultErrorHandler.java index f4e0bb4ec..c582e669a 100644 --- a/integrasjon/pdl-klient/src/main/java/no/nav/vedtak/felles/integrasjon/pdl/PdlDefaultErrorHandler.java +++ b/integrasjon/pdl-klient/src/main/java/no/nav/vedtak/felles/integrasjon/pdl/PdlDefaultErrorHandler.java @@ -20,7 +20,6 @@ import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLError; -import no.nav.vedtak.exception.IntegrasjonException; import no.nav.vedtak.felles.integrasjon.graphql.GraphQLErrorHandler; public class PdlDefaultErrorHandler implements GraphQLErrorHandler { @@ -32,7 +31,6 @@ public class PdlDefaultErrorHandler implements GraphQLErrorHandler { @Override public T handleError(List errors, URI uri, String kode) { - LOG.warn("PDL oppslag mot {} returnerte {} feil", uri, errors.size()); throw errors .stream() .findFirst() // TODO hva med flere? @@ -53,7 +51,7 @@ private static PDLExceptionExtension details(Map details) { } - private static IntegrasjonException exception(List errors, PDLExceptionExtension extension, URI uri) { + private static PdlException exception(List errors, PDLExceptionExtension extension, URI uri) { if (extension == null) { return exceptionFra(errors, SC_INTERNAL_SERVER_ERROR, PDL_INTERNAL, extension, uri); } @@ -71,11 +69,11 @@ private static IntegrasjonException exception(List errors, PDLExce } } - private static IntegrasjonException exceptionFra(List errors, int status, PDLExceptionExtension extension, URI uri) { + private static PdlException exceptionFra(List errors, int status, PDLExceptionExtension extension, URI uri) { return exceptionFra(errors, status, PDL_ERROR_RESPONSE, extension, uri); } - private static IntegrasjonException exceptionFra(List errors, int status, String kode, PDLExceptionExtension extension, URI uri) { + private static PdlException exceptionFra(List errors, int status, String kode, PDLExceptionExtension extension, URI uri) { return new PdlException(kode, errors, extension, status, uri); }