Skip to content

Commit f890045

Browse files
authored
Add Exception logging in ApiHelper (#19675)
1 parent fc52644 commit f890045

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

airbyte-server/src/main/java/io/airbyte/server/apis/ApiHelper.java

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import io.airbyte.server.errors.IdNotFoundKnownException;
1010
import io.airbyte.validation.json.JsonValidationException;
1111
import java.io.IOException;
12+
import org.slf4j.LoggerFactory;
1213

1314
public class ApiHelper {
1415

@@ -23,6 +24,9 @@ static <T> T execute(final HandlerCall<T> call) {
2324
String.format("The provided configuration does not fulfill the specification. Errors: %s", e.getMessage()), e);
2425
} catch (final IOException e) {
2526
throw new RuntimeException(e);
27+
} catch (final Exception e) {
28+
LoggerFactory.getLogger(ApiHelper.class).error("Unexpected Exception", e);
29+
throw e;
2630
}
2731
}
2832

0 commit comments

Comments
 (0)