Skip to content

Commit fefe077

Browse files
committed
chore: debug functional tests
1 parent bb031d9 commit fefe077

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/src/main/java/com/fingerprint/example/FunctionalTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public static void main(String... args) {
2626

2727
final FingerprintApi api = new FingerprintApi(Configuration.getDefaultApiClient(apiSecret, region));
2828

29+
System.out.println("BASE_PATH: " + api.getApiClient().getBasePath());
30+
2931
long end = Instant.now().toEpochMilli();
3032
long start = Instant.now().minus(90L, ChronoUnit.DAYS).toEpochMilli();
3133

@@ -48,7 +50,8 @@ public static void main(String... args) {
4850
eventId = firstEvent.getEventId();
4951
System.out.println(events.getEvents());
5052
} catch (ApiException e) {
51-
System.err.println("Exception when calling FingerprintApi.searchEvents:" + e.getMessage());
53+
System.out.println("BASE_PATH:" + api.getApiClient().getBasePath().toUpperCase());
54+
System.err.println("Exception when calling FingerprintApi.searchEvents:" + e.getMessage() + e.getResponseBody() + e.getResponseHeaders() + e.getCode());
5255
System.exit(1);
5356
}
5457

0 commit comments

Comments
 (0)