[PR #7301] [CLOSED] debug state mismatch #7210

Closed
opened 2026-03-13 13:28:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7301
Author: @himself65
Created: 1/12/2026
Status: Closed

Base: canaryHead: himself65/2026/01/12/logger


📝 Commits (1)

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 packages/core/src/env/logger.ts (+7 -0)

📄 Description

Summary by cubic

Fixes missing stack traces when logging APIError objects. The logger now copies errorStack to stack in args so error logs show the correct trace for easier debugging.

Written for commit c61da9f451. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7301 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/12/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2026/01/12/logger` --- ### 📝 Commits (1) - [`c61da9f`](https://github.com/better-auth/better-auth/commit/c61da9f451f463e446085601306fcc71cee7553a) debug state mismatch ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/env/logger.ts` (+7 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixes missing stack traces when logging APIError objects. The logger now copies errorStack to stack in args so error logs show the correct trace for easier debugging. <sup>Written for commit c61da9f451f463e446085601306fcc71cee7553a. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:28:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7210