Skip to content

zerologadapter/v1.0.2

Choose a tag to compare

@n-ae n-ae released this 18 Jul 16:37

Dependency-only release: the adapter's own API and behavior are
unchanged. go.mod's github.com/n-ae/svcerr requirement moves from
v1.0.3 to v1.0.4. No breaking changes; module path unchanged
(github.com/n-ae/svcerr/zerologadapter).

Changed:

  • github.com/n-ae/svcerr requirement: v1.0.3 → v1.0.4.

Root-module change now in range (doesn't touch any surface this
adapter uses - New, wrapping a zerolog.Logger into svcerr's
Logger interface):

  • v1.0.4: GetStackTrace and RecaptureStackTrace now guard against a
    typed-nil coded error the same way GetErrorCode already did, so
    logging a typed-nil error (e.g. a nil *NotFoundError assigned to a
    plain error) no longer panics after the response body has already
    been written; logError also now returns immediately on a nil
    logger.

Test coverage: 100.0%.