Skip to content

Commit

Permalink
Customize log message in UpdateOnFailure() (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanjia-Yan authored and jpurusho65 committed Apr 3, 2023
1 parent a66b2b3 commit 8a2cd87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/golang/lib/execution_environment/conda_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func InitializeConda(
ctx,
out,
err.Error(),
"Conda",
integrationConfig,
&now,
integrationID,
Expand All @@ -83,6 +84,7 @@ func InitializeConda(
ctx,
out,
err.Error(),
"Conda",
integrationConfig,
&now,
integrationID,
Expand Down
3 changes: 2 additions & 1 deletion src/golang/lib/execution_state/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func UpdateOnFailure(
ctx context.Context,
outputs string,
msg string,
integrationType string,
integrationConfig *shared.IntegrationConfig,
runningAt *time.Time,
integrationID uuid.UUID,
Expand All @@ -101,7 +102,7 @@ func UpdateOnFailure(
DB,
)
if err != nil {
log.Errorf("Failed to update conda integration: %v", err)
log.Errorf("Failed to update %s integration: %v", integrationType, err)
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/golang/lib/lambda/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func ConnectToLambda(
ctx,
"",
errors.Wrap(err, "Unable to parse configuration.").Error(),
"Lambda",
integrationConfig,
&now,
integrationID,
Expand Down Expand Up @@ -125,6 +126,7 @@ func ConnectToLambda(
ctx,
"",
errors.Wrap(err, "Unable to authenticate Lambda Function.").Error(),
"Lambda",
integrationConfig,
&now,
integrationID,
Expand All @@ -146,6 +148,7 @@ func ConnectToLambda(
ctx,
"",
errors.Wrap(err, "Unable to create Lambda Function.").Error(),
"Lambda",
integrationConfig,
&now,
integrationID,
Expand Down

0 comments on commit 8a2cd87

Please sign in to comment.