Skip to content

Commit 34fac16

Browse files
committed
Minor print fix for notifications
1 parent 2d919ab commit 34fac16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notifications.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,12 +637,12 @@ func CreateOrgNotification(ctx context.Context, title, description, referenceUrl
637637
}
638638

639639
if project.Environment == "" {
640-
log.Printf("\n\n\n[ERROR] Not generating notification, as no environment has been detected: %#v", project.Environment)
641640

642641
auth := os.Getenv("AUTH")
643642
org := os.Getenv("ORG")
644643
environment := os.Getenv("ENVIRONMENT_NAME")
645644
if len(auth) == 0 || len(org) == 0 || len(environment) == 0 {
645+
log.Printf("[ERROR] Not generating notification, as no environment has been detected: %#v. This should not happen in Orborus.", project.Environment)
646646
return nil
647647
}
648648

@@ -666,7 +666,7 @@ func CreateOrgNotification(ctx context.Context, title, description, referenceUrl
666666

667667
} else {
668668
if project.Environment != "cloud" {
669-
log.Printf("[DEBUG] No cached notification for %s. Creating one", referenceUrl)
669+
//log.Printf("[DEBUG] No cached notification for %s. Creating one", referenceUrl)
670670
}
671671

672672
err := SetCache(ctx, cacheKey, []byte("1"), 1)

0 commit comments

Comments
 (0)