about summary refs log tree commit diff
path: root/src/view/com/profile/ProfileHeader.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-04 13:12:46 -0500
committerGitHub <noreply@github.com>2023-11-04 13:12:46 -0500
commite49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (patch)
treef3b498168963bc9b945428f16c309670b18602d4 /src/view/com/profile/ProfileHeader.tsx
parent46c2564e6531712538e44ee6880fb4bfce612ab9 (diff)
parent0c76866757367953cc6e7cc8c9ad9fcfdb00a862 (diff)
downloadvoidsky-e49a3d8a564b2aa42a8c0e66dfcbae27d096dc26.tar.zst
Merge pull request #1813 from bluesky-social/eric/app-903-extract-logger-into-singleton
Add new logger
Diffstat (limited to 'src/view/com/profile/ProfileHeader.tsx')
-rw-r--r--src/view/com/profile/ProfileHeader.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx
index 082fbc0bc..d4fd88ca8 100644
--- a/src/view/com/profile/ProfileHeader.tsx
+++ b/src/view/com/profile/ProfileHeader.tsx
@@ -150,7 +150,7 @@ const ProfileHeaderLoaded = observer(function ProfileHeaderLoadedImpl({
             : 'ProfileHeader:UnfollowButtonClicked',
         )
       },
-      err => store.log.error('Failed to toggle follow', err),
+      err => store.log.error('Failed to toggle follow', {error: err}),
     )
   }, [track, view, store.log, setShowSuggestedFollows])
 
@@ -193,7 +193,7 @@ const ProfileHeaderLoaded = observer(function ProfileHeaderLoadedImpl({
       await view.muteAccount()
       Toast.show('Account muted')
     } catch (e: any) {
-      store.log.error('Failed to mute account', e)
+      store.log.error('Failed to mute account', {error: e})
       Toast.show(`There was an issue! ${e.toString()}`)
     }
   }, [track, view, store])
@@ -204,7 +204,7 @@ const ProfileHeaderLoaded = observer(function ProfileHeaderLoadedImpl({
       await view.unmuteAccount()
       Toast.show('Account unmuted')
     } catch (e: any) {
-      store.log.error('Failed to unmute account', e)
+      store.log.error('Failed to unmute account', {error: e})
       Toast.show(`There was an issue! ${e.toString()}`)
     }
   }, [track, view, store])
@@ -222,7 +222,7 @@ const ProfileHeaderLoaded = observer(function ProfileHeaderLoadedImpl({
           onRefreshAll()
           Toast.show('Account blocked')
         } catch (e: any) {
-          store.log.error('Failed to block account', e)
+          store.log.error('Failed to block account', {error: e})
           Toast.show(`There was an issue! ${e.toString()}`)
         }
       },
@@ -242,7 +242,7 @@ const ProfileHeaderLoaded = observer(function ProfileHeaderLoadedImpl({
           onRefreshAll()
           Toast.show('Account unblocked')
         } catch (e: any) {
-          store.log.error('Failed to unblock account', e)
+          store.log.error('Failed to unblock account', {error: e})
           Toast.show(`There was an issue! ${e.toString()}`)
         }
       },