Skip to content

Commit

Permalink
chore: move logging around a bit to ensure tagging is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Aug 29, 2024
1 parent aeb0b18 commit ce2eae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gitlab_server_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ func GitLabWebhookHandler(ctx context.Context, ourSecret, configFilePath string)
return
}

slogctx.Info(ctx, "GET /gitlab webhook")

// Build context for rest of the pipeline
ctx = state.WithCommitSHA(ctx, gitSha)
ctx = state.WithMergeRequestID(ctx, id)
ctx = slogctx.With(ctx, slog.String("event_type", payload.EventType))

slogctx.Info(ctx, "GET /gitlab webhook")

// Get the remote config file
file, err := client.MergeRequests().GetRemoteConfig(ctx, configFilePath, gitSha)
if err != nil {
Expand Down

0 comments on commit ce2eae0

Please sign in to comment.