Skip to content

Commit

Permalink
Extend logging. Add ref. to lts in eastus for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiygetlin committed Nov 22, 2023
1 parent 24a8ed4 commit 4a947fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import bio.terra.landingzone.stairway.flight.LandingZoneFlightMapKeys;
import bio.terra.landingzone.stairway.flight.ResourceNameProvider;
import bio.terra.landingzone.stairway.flight.ResourceNameRequirements;
import bio.terra.landingzone.stairway.flight.exception.utils.ManagementExceptionUtils;
import bio.terra.stairway.FlightContext;
import bio.terra.stairway.StepResult;
import bio.terra.stairway.StepStatus;
Expand Down Expand Up @@ -228,7 +229,8 @@ protected Optional<StepResult> maybeHandleManagementException(ManagementExceptio
&& e.getValue().getDetails() != null
&& e.getValue().getDetails().stream()
.anyMatch(d -> StringUtils.equalsIgnoreCase(d.getCode(), internalServerError))) {
logger.warn("Postgres provisioning failure. Error: {}.", e.getMessage());
logger.warn(
"Postgres provisioning failure. Error: {}.", ManagementExceptionUtils.buildErrorInfo(e));
return Optional.of(new StepResult(StepStatus.STEP_RESULT_FAILURE_RETRY));
}
return Optional.empty();
Expand Down
1 change: 1 addition & 0 deletions library/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ landingzone:
longTermStorageAccountIds:
#extend configuration in case mrg is in different region; resource id should be fully qualified
southcentralus: /subscriptions/df547342-9cfd-44ef-a6dd-df0ede32f1e3/resourceGroups/landing-zone-testing/providers/Microsoft.Storage/storageAccounts/ltssthcentralus
eastus: /subscriptions/df547342-9cfd-44ef-a6dd-df0ede32f1e3/resourceGroups/landing-zone-testing/providers/Microsoft.Storage/storageAccounts/ltseastus
sentinelScheduledAlertRuleTemplateIds:
- 0b9ae89d-8cad-461c-808f-0494f70ad5c4
sentinelMlRuleTemplateIds:
Expand Down

0 comments on commit 4a947fa

Please sign in to comment.