diff options
author | Eric Bailey <git@esb.lol> | 2023-11-04 13:42:36 -0500 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2023-11-04 13:42:36 -0500 |
commit | f51351e80d446fc058faf0ab91757ca4bdead0a5 (patch) | |
tree | 0c2372a71e605bfbb99b38113305b800ddd04064 /src/view/com/profile/ProfileFollowers.tsx | |
parent | e49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (diff) | |
download | voidsky-f51351e80d446fc058faf0ab91757ca4bdead0a5.tar.zst |
Replace all logs with new logger
Diffstat (limited to 'src/view/com/profile/ProfileFollowers.tsx')
-rw-r--r-- | src/view/com/profile/ProfileFollowers.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx index 7e41b1314..00ea48ed6 100644 --- a/src/view/com/profile/ProfileFollowers.tsx +++ b/src/view/com/profile/ProfileFollowers.tsx @@ -10,6 +10,7 @@ import {ErrorMessage} from '../util/error/ErrorMessage' import {ProfileCardWithFollowBtn} from './ProfileCard' import {useStores} from 'state/index' import {usePalette} from 'lib/hooks/usePalette' +import {logger} from '#/logger' export const ProfileFollowers = observer(function ProfileFollowers({ name, @@ -27,16 +28,16 @@ export const ProfileFollowers = observer(function ProfileFollowers({ view .loadMore() .catch(err => - store.log.error('Failed to fetch user followers', {error: err}), + logger.error('Failed to fetch user followers', {error: err}), ) - }, [view, store.log]) + }, [view]) const onRefresh = () => { view.refresh() } const onEndReached = () => { view.loadMore().catch(err => - view?.rootStore.log.error('Failed to load more followers', { + logger.error('Failed to load more followers', { error: err, }), ) |