getsentry / raven-go

Sentry client in Go
https://sentry.io
BSD 3-Clause "New" or "Revised" License
561 stars 148 forks source link

Capture and CaptureError not to panic when packet or err is nil #162

Closed mikhailkolesnik closed 6 years ago

mikhailkolesnik commented 6 years ago

Capture methods can handle situations when client is nil, but when packet or err args are nil it will cause calling thread to panic. This is highly undesirable in PROD systems that accidentally try to log a nil packet or error as it might cause a system crash on something not produciton critical as error logging.

mikhailkolesnik commented 6 years ago

That was quick :)