Skip to content

Commit

Permalink
Lisätty virhelokitusta ja parannettu virheen käsittelyä
Browse files Browse the repository at this point in the history
  • Loading branch information
augustk committed Jan 16, 2025
1 parent 82e54ca commit 604e37a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ private S3ExportResult exportTableToS3(String schemaName, String tableName) thro
s3ExportResult.toString());

return s3ExportResult;

} catch (Exception e) {
LOG.error(
"Scheman {} taulun {} vienti Ovaran S3-ämpäriin epäonnistui", schemaName, tableName, e);
throw new RuntimeException(e);
} finally {
DbUtils.close(connection);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void run() throws Exception {
new ManifestItem(
uploadFilename, versionId == null ? "DUMMY" : versionId));
} catch (Exception e) {
LOG.error("Manifest-tiedoston siirtäminen Lampeen epäonnistui", e);
throw new RuntimeException(e);
}
});
Expand Down

0 comments on commit 604e37a

Please sign in to comment.