about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-04 14:00:38 -0500
committerGitHub <noreply@github.com>2023-11-04 14:00:38 -0500
commit95b5e642dcca7b6fbf60cb1b86a94ba9d40415e1 (patch)
tree704c8dc022b0536951e4cb49b0006991253c3903 /src/view/com/post-thread/PostThread.tsx
parente49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (diff)
parentf6fe980a6457bc7394427b569b2e5b05ce5278f6 (diff)
downloadvoidsky-95b5e642dcca7b6fbf60cb1b86a94ba9d40415e1.tar.zst
Merge pull request #1814 from bluesky-social/eric/replace-logger
Remove old logger
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index b0728a8a6..4eb47b0a3 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -30,6 +30,7 @@ import {useNavigation} from '@react-navigation/native'
 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
 import {NavigationProp} from 'lib/routes/types'
 import {sanitizeDisplayName} from 'lib/strings/display-names'
+import {logger} from '#/logger'
 
 const MAINTAIN_VISIBLE_CONTENT_POSITION = {minIndexForVisible: 2}
 
@@ -119,7 +120,7 @@ export const PostThread = observer(function PostThread({
     try {
       view?.refresh()
     } catch (err) {
-      view.rootStore.log.error('Failed to refresh posts thread', {error: err})
+      logger.error('Failed to refresh posts thread', {error: err})
     }
     setIsRefreshing(false)
   }, [view, setIsRefreshing])