1
0
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:
lndrschlz 2020-05-12 22:11:52 +02:00 committed by GitHub
parent 80d53dae79
commit 4105f81f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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) {