core/utils/logger: Use custom error serializer
core/utils/logger: Use custom error serializer

  The bunyan standard error serializer removes a lot of interesting
  fields from errors and this would prevent us from doing some pattern
  matching on them to format those errors for Sentry.

  We start from an object as the standard serializer would return and
  add back a few specific attributes that we'll use later in Sentry
  errors formatting.

cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop