func (cl *CustomLogger) LogIfError(ctx context.Context, err error) {
	if err != nil {
		cl.Error(ctx, err)
	}
}
// LogIfError is a helper to log only non-nil errors
LogIfError is a helper to log only non-nil errors
// LogIfError is a helper to log only non - nil errors
func (cl *CustomLogger) LogIfError(ctx context.Context, err error) {
	if err != nil {
		cl.Error(ctx, err)
	}
}
func ( cl * CustomLogger ) LogIfError ( ctx context . Context , err error ) { if err != nil { cl . Error ( ctx , err ) } }
LogIfError is a helper to log only non-nil errors
LogIfError is a helper to log only non - nil errors