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

185: Fix unsupported value type msg in log #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,12 @@ func (r *Receiver) search(projects []string, issueLabel string) (*jira.Issue, bo

issue := issues[0]
if len(issues) > 1 {
level.Warn(r.logger).Log("msg", "more than one issue matched, picking most recently resolved", "query", query, "issues", issues, "picked", issue)
keys := make([]string, len(issues))
for i, iss := range issues {
keys[i] = iss.Key
}
issuesKeys := strings.Join(keys, ", ")
level.Warn(r.logger).Log("msg", "more than one issue matched, picking most recently resolved", "query", query, "issues", issuesKeys, "picked", issue.Key)
}

level.Debug(r.logger).Log("msg", "found", "issue", issue, "query", query)
Expand Down
Loading