Documentation
¶
Overview ¶
Package fallback - logging an error that the code handles itself by falling back to something (a default value, an empty list) instead of returning it. It sits below the domain packages (service, views, themes) so that they all log fallbacks the same way. service.LogFallback and modulekit.LogFallback call it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
Log logs an error that a service (the core's or a module's) handles itself by falling back to a default value or an empty list: a missing record (entity.ErrEntityNotFound or apperrors.ErrNotFound, wrapped or not) at debug level, anything else as a warning. A nil error logs nothing. Don't log here an error the service returns: wrap it with what the service was doing, and the handler logs it once.
Types ¶
This section is empty.