This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture and CaptureError not to panic when packet or err is nil
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.
- Loading branch information
1 parent
c9de0b9
commit 32a1379
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters