Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More logs #7185

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public <T> T get(String url, String userAgent, Class<T> type) {
* @return boolean indicator of success
*/
public boolean downloadFile(String url, String userAgent, String localFilePath) {
LOGGER.info("About to download file {}", url);
JerseyClientResponse<InputStream, String> response = jerseyClientHelperForOrgLoaders.executeGetRequest(url, null, null, false, Map.of(), Map.of("User-Agent", userAgent), InputStream.class, String.class);
int status = response.getStatus();
if (status != 200) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class OrgLoadManagerImpl implements OrgLoadManager {

@Override
public void loadOrgs() {
LOGGER.info("About to start the orgs loader process");
OrgLoadSource loader = getNextOrgLoader();
if (loader != null) {
loadOrg(loader);
Expand All @@ -46,6 +47,7 @@ public void loadOrgs() {

@Override
public void loadOrg(OrgLoadSource loader) {
LOGGER.info("About to start loading orgs from source {}", loader.getSourceName());
if (loader != null) {
OrgImportLogEntity importLog = getOrgImportLogEntity(loader);
boolean success = loader.downloadOrgData();
Expand All @@ -55,8 +57,10 @@ public void loadOrg(OrgLoadSource loader) {
logImport(importLog, success);

if (success) {
LOGGER.info("Orgs successfully imported from {}", loader.getSourceName());
slackManager.sendAlert(String.format("Orgs successfully imported from %s", loader.getSourceName()), slackChannel, slackUser);
} else {
LOGGER.warn("Org import FAILURE from {}", loader.getSourceName());
slackManager.sendAlert(String.format("Org import FAILURE from %s", loader.getSourceName()), slackChannel, slackUser);
}
} else {
Expand Down
Loading