Documentation
¶
Index ¶
- func HandleCrash()
- func HandleCrashWithContext(ctx context.Context, additionalHandlers ...func(context.Context, interface{}))
- func HandleCrashWithLogger(logger klog.Logger)
- func HandleError(err error)
- func HandleErrorWithContext(ctx context.Context, err error, msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCrashWithContext ¶
func HandleCrashWithContext(ctx context.Context, additionalHandlers ...func(context.Context, interface{}))
HandleCrashWithContext recovers from panic and logs it with the context logger.
func HandleCrashWithLogger ¶
HandleCrashWithLogger recovers from panic and logs it using the provided logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.