Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #138 from atc0005/i137-explicitly-note-notificatio…
Browse files Browse the repository at this point in the history
…ns-state

Explicitly note notifications state
  • Loading branch information
atc0005 authored Jul 24, 2020
2 parents 7e52fa3 + 58ad947 commit e3cf853
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/brick/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,10 @@ func NotifyMgr(ctx context.Context, cfg *config.Config, notifyWorkQueue <-chan e

// If enabled, start persistent goroutine to process request details and
// submit messages to Microsoft Teams.
if cfg.NotifyTeams() {
switch cfg.NotifyTeams() {
case false:
log.Info("NotifyMgr: Teams notifications disabled")
case true:
log.Info("NotifyMgr: Teams notifications enabled")
log.Debug("NotifyMgr: Starting up teamsNotifier")
go teamsNotifier(
Expand All @@ -640,7 +643,10 @@ func NotifyMgr(ctx context.Context, cfg *config.Config, notifyWorkQueue <-chan e

// If enabled, start persistent goroutine to process request details and
// submit messages by email.
if cfg.NotifyEmail() {
switch cfg.NotifyEmail() {
case false:
log.Info("NotifyMgr: Email notifications disabled")
case true:
log.Info("NotifyMgr: Email notifications enabled")
log.Debug("NotifyMgr: Starting up emailNotifier")

Expand Down

0 comments on commit e3cf853

Please sign in to comment.