refactor: use drafts-specific logger in hooks and storage

Switch from the generic logger to the new drafts-specific logger
for better log categorization.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-01-16 11:30:12 +02:00
parent 12763bee76
commit a0ed43d903
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,6 @@ import {useCallback} from 'react'
import {type AppBskyDraftDefs} from '@atproto/api' import {type AppBskyDraftDefs} from '@atproto/api'
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
import {logger} from '#/logger'
import {useAgent} from '#/state/session' import {useAgent} from '#/state/session'
import {type ComposerState} from '#/view/com/composer/state/composer' import {type ComposerState} from '#/view/com/composer/state/composer'
import { import {
@@ -11,6 +10,7 @@ import {
draftViewToSummary, draftViewToSummary,
threadgateToUISettings, threadgateToUISettings,
} from './api' } from './api'
import {logger} from './logger'
import {type DraftSummary} from './schema' import {type DraftSummary} from './schema'
import * as storage from './storage' import * as storage from './storage'
+1 -1
View File
@@ -4,7 +4,7 @@
*/ */
import {type DBSchema, type IDBPDatabase, openDB} from 'idb' import {type DBSchema, type IDBPDatabase, openDB} from 'idb'
import {logger} from '#/logger' import {logger} from './logger'
const DB_NAME = 'bsky-draft-media' const DB_NAME = 'bsky-draft-media'
const DB_VERSION = 1 const DB_VERSION = 1