mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-03 13:21:41 +02:00
removed error level from sentry hook (#1528)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
parent
80d53dae79
commit
4105f81f71
@ -41,7 +41,7 @@ func NewSentryHook(sentryDsn, correlationID string) SentryHook {
|
||||
Entry().Warnf("cannot initialize sentry: %v", err)
|
||||
}
|
||||
h := SentryHook{
|
||||
levels: []logrus.Level{logrus.PanicLevel, logrus.FatalLevel, logrus.ErrorLevel},
|
||||
levels: []logrus.Level{logrus.PanicLevel, logrus.FatalLevel},
|
||||
Hub: sentry.CurrentHub(),
|
||||
tags: make(map[string]string),
|
||||
Event: sentry.NewEvent(),
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
|
||||
func TestSentryHookLevels(t *testing.T) {
|
||||
hook := NewSentryHook("", "")
|
||||
assert.Equal(t, []logrus.Level{logrus.PanicLevel, logrus.FatalLevel, logrus.ErrorLevel}, hook.Levels())
|
||||
assert.Equal(t, []logrus.Level{logrus.PanicLevel, logrus.FatalLevel}, hook.Levels())
|
||||
}
|
||||
|
||||
func TestSentryHookDsn(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user