Skip to content

Commit 0ec1bb3

Browse files
committed
add trace
1 parent 21e7eef commit 0ec1bb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/mailer/mail_workflow_run.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ func composeAndSendActionsWorkflowRunStatusEmail(ctx context.Context, repo *repo
122122
}
123123
msgs := make([]*sender_service.Message, 0, len(tos))
124124
for _, rec := range tos {
125+
log.Trace("Composing actions email and send to %s (UID: %d)", rec.Name, rec.ID)
125126
msg := sender_service.NewMessageFrom(
126127
rec.Email,
127128
displayName,
@@ -166,6 +167,7 @@ func MailActionsTrigger(ctx context.Context, sender *user_model.User, repo *repo
166167
}
167168

168169
if len(recipients) > 0 {
170+
log.Trace("MailActionsTrigger: will try to send actions email")
169171
composeAndSendActionsWorkflowRunStatusEmail(ctx, repo, run, sender, recipients)
170172
}
171173
}

0 commit comments

Comments
 (0)