You've already forked sap-jenkins-library
							
							
				mirror of
				https://github.com/SAP/jenkins-library.git
				synced 2025-10-30 23:57:50 +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:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user