diff options
author | Eric Bailey <git@esb.lol> | 2023-11-04 14:00:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 14:00:38 -0500 |
commit | 95b5e642dcca7b6fbf60cb1b86a94ba9d40415e1 (patch) | |
tree | 704c8dc022b0536951e4cb49b0006991253c3903 /src/state/models/ui/profile.ts | |
parent | e49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (diff) | |
parent | f6fe980a6457bc7394427b569b2e5b05ce5278f6 (diff) | |
download | voidsky-95b5e642dcca7b6fbf60cb1b86a94ba9d40415e1.tar.zst |
Merge pull request #1814 from bluesky-social/eric/replace-logger
Remove old logger
Diffstat (limited to 'src/state/models/ui/profile.ts')
-rw-r--r-- | src/state/models/ui/profile.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/state/models/ui/profile.ts b/src/state/models/ui/profile.ts index 47a99a8fc..f96340c65 100644 --- a/src/state/models/ui/profile.ts +++ b/src/state/models/ui/profile.ts @@ -4,6 +4,7 @@ import {ProfileModel} from '../content/profile' import {PostsFeedModel} from '../feeds/posts' import {ActorFeedsModel} from '../lists/actor-feeds' import {ListsListModel} from '../lists/lists-list' +import {logger} from '#/logger' export enum Sections { PostsNoReplies = 'Posts', @@ -223,14 +224,10 @@ export class ProfileUiModel { await Promise.all([ this.profile .setup() - .catch(err => - this.rootStore.log.error('Failed to fetch profile', {error: err}), - ), + .catch(err => logger.error('Failed to fetch profile', {error: err})), this.feed .setup() - .catch(err => - this.rootStore.log.error('Failed to fetch feed', {error: err}), - ), + .catch(err => logger.error('Failed to fetch feed', {error: err})), ]) runInAction(() => { this.isAuthenticatedUser = @@ -241,9 +238,7 @@ export class ProfileUiModel { this.lists.source = this.profile.did this.lists .loadMore() - .catch(err => - this.rootStore.log.error('Failed to fetch lists', {error: err}), - ) + .catch(err => logger.error('Failed to fetch lists', {error: err})) } async refresh() { |