Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Sep 24, 2021
1 parent 0a5f074 commit a08a3f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public OpenLineageClient(String url, Optional<String> apiKey)
public void emit(OpenLineage.RunEvent event)
{
try {
// TODO: Do asynchronously with retry if failed
String json = objectMapper.writeValueAsString(event);
logger.info(json);

Expand All @@ -61,7 +62,7 @@ public void emit(OpenLineage.RunEvent event)
}

StatusResponseHandler.StatusResponse status = jettyClient.execute(requestBuilder.build(), StatusResponseHandler.createStatusResponseHandler());
System.out.println(status.getStatusCode());
logger.info("Response status: " + status.getStatusCode());
}
catch (Exception e) {
logger.error(e);
Expand Down

0 comments on commit a08a3f1

Please sign in to comment.