summaryrefslogtreecommitdiff
path: root/config/triggers.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/triggers.go')
-rw-r--r--config/triggers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/triggers.go b/config/triggers.go
index 3005d59..daf4373 100644
--- a/config/triggers.go
+++ b/config/triggers.go
@@ -7,6 +7,7 @@ import (
"github.com/google/shlex"
"git.sr.ht/~rjarry/aerc/lib/format"
+ "git.sr.ht/~rjarry/aerc/logging"
"git.sr.ht/~rjarry/aerc/models"
)
@@ -52,6 +53,6 @@ func (trig *TriggersConfig) ExecNewEmail(account *AccountConfig,
return fmt.Sprintf(formatstr, args...), nil
})
if err != nil {
- fmt.Printf("Error from the new-email trigger: %s\n", err)
+ logging.Errorf("failed to run new-email trigger: %v", err)
}
}