Skip to content

Commit

Permalink
Fix log key name
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Kozak <[email protected]>
  • Loading branch information
kozaktomas committed Nov 14, 2023
1 parent 9e27ead commit beecbcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
return false, err
}
if truncated {
level.Warn(n.logger).Log("msg", "Truncated title", "incident", key, "max_runes", maxTitleLenRunes)
level.Warn(n.logger).Log("msg", "Truncated title", "key", key, "max_runes", maxTitleLenRunes)
}
description, truncated := notify.TruncateInRunes(tmpl(n.conf.Message), maxDescriptionLenRunes)
if err != nil {
return false, err
}
if truncated {
level.Warn(n.logger).Log("msg", "Truncated message", "incident", key, "max_runes", maxDescriptionLenRunes)
level.Warn(n.logger).Log("msg", "Truncated message", "key", key, "max_runes", maxDescriptionLenRunes)
}

color := colorGrey
Expand Down

0 comments on commit beecbcb

Please sign in to comment.