From 8f7c4508bdb671b6f02f057944b401432e71d6e4 Mon Sep 17 00:00:00 2001 From: Kalle Fagerberg Date: Tue, 4 Oct 2022 14:37:30 +0200 Subject: [PATCH] Added more trace logging (#7) --- main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 84c6d58..801178e 100644 --- a/main.go +++ b/main.go @@ -67,8 +67,12 @@ func (r Release) JiraIssue() jira.Issue { var extraFields tcontainer.MarshalMap if config.ProjectNameCustomField == 0 { + log.Trace().Msg("Create ticket with project name in labels.") labels = append(labels, r.Project) } else { + log.Trace(). + Uint("customField", config.ProjectNameCustomField). + Msg("Create ticket with project name in custom field.") customFieldName := fmt.Sprintf("customfield_%d", config.ProjectNameCustomField) extraFields = tcontainer.MarshalMap{ customFieldName: r.Project, @@ -242,7 +246,10 @@ func configSetup() error { return dotEnvErr } - log.Debug().Str("url", config.JiraURL).Msg("Loaded configuration.") + log.Debug(). + Str("url", config.JiraURL). + Uint("customField", config.ProjectNameCustomField). + Msg("Loaded configuration.") var httpClient *http.Client tlsConfig := tls.Config{InsecureSkipVerify: config.SkipCertVerify}