[PR #6597] [MERGED] fix(adapter): add logger creation in adapter factory #6770

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6597
Author: @ping-maxwell
Created: 12/8/2025
Status: Merged
Merged: 12/8/2025
Merged by: @himself65

Base: canaryHead: fix/adapter-debug-logs-dont-work


📝 Commits (3)

  • 38e247d fix(adapter): add logger creation in adapter factory
  • 9a2a898 Update factory.ts
  • afc17e8 Update factory.ts

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 packages/core/src/db/adapter/factory.ts (+4 -1)

📄 Description

Adapter debug logs don't work after previous changes to moving to createLogger. This PR ensures the adapter factory debug logs function again.


Summary by cubic

Restore adapter debug logs by creating a logger in the adapter factory. We now import createLogger and instantiate it inside debugLog and the date conversion error handler, so logs work again after the logger refactor.

Written for commit afc17e8921. Summary will update automatically 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/6597 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 12/8/2025 **Status:** ✅ Merged **Merged:** 12/8/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/adapter-debug-logs-dont-work` --- ### 📝 Commits (3) - [`38e247d`](https://github.com/better-auth/better-auth/commit/38e247d2683c1bc295f3ba40348718d46e0c9bf9) fix(adapter): add logger creation in adapter factory - [`9a2a898`](https://github.com/better-auth/better-auth/commit/9a2a898f2ed1b9a306183820fab195d1f301a892) Update factory.ts - [`afc17e8`](https://github.com/better-auth/better-auth/commit/afc17e8921d7e0c781b0131c6e2846ef675a8e8c) Update factory.ts ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/db/adapter/factory.ts` (+4 -1) </details> ### 📄 Description Adapter debug logs don't work after previous changes to moving to createLogger. This PR ensures the adapter factory debug logs function again. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Restore adapter debug logs by creating a logger in the adapter factory. We now import createLogger and instantiate it inside debugLog and the date conversion error handler, so logs work again after the logger refactor. <sup>Written for commit afc17e8921d7e0c781b0131c6e2846ef675a8e8c. Summary will update automatically 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:11: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#6770