Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
smirnovaae committed Mar 13, 2024
1 parent 64dd1f9 commit b9fda4d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ public void handleRequest(InputStream inputStream, OutputStream outputStream, Co
var parameterStore = AttributionParameterStore.getParameterStore();
AttributionDataShareHelper helper = helperInit(fileName, fileFullPath, logger);
try (var dbConnection = DriverManager.getConnection(parameterStore.getDbHost(), parameterStore.getDbUser(), parameterStore.getDbPassword())){

long start = System.currentTimeMillis();
helper.copyDataToFile(dbConnection);
long finish = System.currentTimeMillis();

logger.log("TIME ms: ---------- " + (finish - start));
helper.writeFileToFinalDestination(getS3Client(ENDPOINT, parameterStore));

} catch (NullPointerException | URISyntaxException | SQLException ex) {
Expand Down

0 comments on commit b9fda4d

Please sign in to comment.