• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 29937634573 / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2026 04:26PM UTC
Files 196
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2026 04:21PM UTC coverage: 71.932% (+0.06%) from 71.869%
29937634573.1

push

github

web-flow
fix: consolidate error logs into single log entry (#2635)

## What kind of change does this PR introduce?

Reduce multiple log lines per request to a single line.

```bash
モ curl http://localhost:9999/admin/sso/providers | jq '.'
{
  "code": 401,
  "error_code": "no_authorization",
  "msg": "This endpoint requires a valid Bearer token"
}
```

## What is the current behavior?

```json
{"component":"api","error":"401: This endpoint requires a valid Bearer token","level":"warning","method":"GET","msg":"401: This endpoint requires a valid Bearer token","path":"/admin/sso/providers","referer":"http://localhost:3000","remote_addr":"127.0.0.1","request_id":"6f771103-e037-464d-951e-25a46ff2fce7","time":"2026-07-21T23:24:27Z"}
{"component":"api","duration":91167,"error_code":"no_authorization","level":"warning","method":"GET","msg":"request completed","path":"/admin/sso/providers","referer":"http://localhost:3000","remote_addr":"127.0.0.1","request_id":"6f771103-e037-464d-951e-25a46ff2fce7","status":401,"time":"2026-07-21T23:24:27Z"}
```

Errored requests used to emit two log lines:

1. an immediate one with the error message but no status/error_code
1. a second "request completed" line with status/error_code but no error
message.


https://linear.app/supabase/issue/AUTH-1289/consolidate-auth-error-logs-into-a-single-log-entry

## What is the new behavior?

Moves the error message onto the request-scoped log entry via
`observability.LogEntrySetField` so it rides along on the single
deferred completion log instead.

```json
{"component":"api","duration":184917,"error":"401: This endpoint requires a valid Bearer token","error_code":"no_authorization","level":"warning","method":"GET","msg":"request completed","path":"/admin/sso/providers","referer":"http://localhost:3000","remote_addr":"127.0.0.1","request_id":"f1cc79f2-da29-4213-880b-06c193734cf8","status":401,"time":"2026-07-21T23:25:36Z"}
```

## Additional context

18237 of 25353 relevant lines covered (71.93%)

666.93 hits per line

Source Files on job 29937634573.1
  • Tree
  • List 196
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29937634573
  • 47b3d942 on github
  • Prev Job for on master (#29930047595.1)
  • Next Job for on master (#30004692450.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc