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:
@@ -2,7 +2,6 @@ import {useCallback} from 'react'
|
||||
import {type AppBskyDraftDefs} from '@atproto/api'
|
||||
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
|
||||
|
||||
import {logger} from '#/logger'
|
||||
import {useAgent} from '#/state/session'
|
||||
import {type ComposerState} from '#/view/com/composer/state/composer'
|
||||
import {
|
||||
@@ -11,6 +10,7 @@ import {
|
||||
draftViewToSummary,
|
||||
threadgateToUISettings,
|
||||
} from './api'
|
||||
import {logger} from './logger'
|
||||
import {type DraftSummary} from './schema'
|
||||
import * as storage from './storage'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
import {type DBSchema, type IDBPDatabase, openDB} from 'idb'
|
||||
|
||||
import {logger} from '#/logger'
|
||||
import {logger} from './logger'
|
||||
|
||||
const DB_NAME = 'bsky-draft-media'
|
||||
const DB_VERSION = 1
|
||||
|
||||
Reference in New Issue
Block a user