mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01:00
fix: improve logging
This commit is contained in:
parent
1d3ffc728d
commit
fac26dfc72
1 changed files with 4 additions and 2 deletions
|
|
@ -27,8 +27,10 @@ func NewNotifier(c *cobra.Command) *Notifier {
|
||||||
acceptedLogLevels := slackrus.LevelThreshold(logLevel)
|
acceptedLogLevels := slackrus.LevelThreshold(logLevel)
|
||||||
|
|
||||||
// Parse types and create notifiers.
|
// Parse types and create notifiers.
|
||||||
types, _ := f.GetStringSlice("notifications")
|
types, err := f.GetStringSlice("notifications")
|
||||||
|
if err != nil {
|
||||||
|
log.WithField("could not read notifications argument", log.Fields{ "Error": err }).Fatal()
|
||||||
|
}
|
||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
var tn ty.Notifier
|
var tn ty.Notifier
|
||||||
switch t {
|
switch t {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue