Replace bare console.error() calls with logError() utility across all 47 API route handlers. logError() prints timestamp + context + message + stack trace + extra request data to stderr, and redacts sensitive fields (password, token, secret, key, etc.) from logged objects. |
||
|---|---|---|
| .. | ||
| admin | ||
| api-tokens | ||
| auth | ||
| cron-initialize | ||
| health | ||
| logs | ||
| permissions | ||
| platform | ||
| roles | ||
| sessions | ||
| users | ||