Skip to content

Commit

Permalink
feat: actually show the noop'ing
Browse files Browse the repository at this point in the history
  • Loading branch information
nobe4 committed May 21, 2024
1 parent ffe3e10 commit f89c207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package config

import (
"fmt"
"log/slog"
"os"

Expand Down Expand Up @@ -65,7 +66,7 @@ func (c *Config) Apply(n notifications.NotificationMap, actors map[string]actors
for _, notification := range selectedNotifications {
if actor, ok := actors[group.Action]; ok == true {
if noop {
slog.Info("NOOP'ing", "action", group.Action, "notification", notification.ToString())
fmt.Printf("NOOP'ing action %s on notification %s\n", group.Action, notification.ToString())
} else {
// Remove the notification temporarily from the list, it
// will be added back after the actor runs.
Expand Down

0 comments on commit f89c207

Please sign in to comment.