Skip to content

Commit

Permalink
Merge pull request #24 from CDOT-CV/pr/addressing-usdot-comments-6-11…
Browse files Browse the repository at this point in the history
…-2024

Addressing USDOT PR Comments 6/11/2024
  • Loading branch information
dmccoystephenson authored Jun 11, 2024
2 parents 65d9185 + b2083fb commit ef8c8c1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public void run(String[] args) throws Exception {
} else if (destination.equals("firehose")) {
firehose = buildFirehoseClient(awsRegion);
} else if (destination.equals("gcs")) {
// The file path specified by GOOGLE_APPLICATION_CREDENTIALS will be used here.
gcsStorage = StorageOptions.getDefaultInstance().getService();
} else {
logger.error("Invalid destination: " + destination);
Expand Down Expand Up @@ -213,8 +214,8 @@ public void run(String[] args) throws Exception {
}
} catch (Exception e) {
int retryTimeout = 5000;
logger.error("Error depositing to AWS. Retrying in " + retryTimeout / 1000 + " seconds",
e);
String destinationName = depositToS3 ? "S3" : destination;
logger.error("Error depositing to destination '" + destinationName + "'. Retrying in " + retryTimeout / 1000 + " seconds", e);
Thread.sleep(retryTimeout);
}
}
Expand All @@ -226,7 +227,7 @@ public void run(String[] args) throws Exception {
}
}
} catch (Exception e) {
logger.error("Server Error. reconnecting to AWS ", e);
logger.error("Server Error. reconnecting to destination ", e);
} finally {
stringConsumer.close();
}
Expand Down

0 comments on commit ef8c8c1

Please sign in to comment.