Skip to content

Commit

Permalink
(logging) wrn when no ms teams hook
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Aug 19, 2024
1 parent b4cd118 commit 6058325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func sendHealthCheck() {
}
slog.Info("Sending Health Check Notify", logDetails...)
if f.MSTeamsHook == "" {
slog.Warn("MS Teams hook not set")
return
}

Expand Down Expand Up @@ -197,6 +198,7 @@ func notify(result *pkg.ScanResult) {
slog.Info("Sending Alert Notify", logDetails...)

if f.MSTeamsHook == "" {
slog.Warn("MS Teams hook not set")
return
}

Expand Down
1 change: 1 addition & 0 deletions pkg/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func sendPanicCheck(f *Flags, m *runtime.MemStats) {
slog.Warn("Sending Panic Check", logDetails...)

if f.MSTeamsHook == "" {
slog.Warn("MS Teams hook not set")
return
}

Expand Down

0 comments on commit 6058325

Please sign in to comment.