about summary refs log tree commit diff
path: root/src/lib/notifications/notifications.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-01-25 23:11:01 -0600
committerGitHub <noreply@github.com>2024-01-25 21:11:01 -0800
commitbc502edae150173d7b5ead0eddb739994929ac97 (patch)
treebfe4f3b9850d03339a73495db48977524bb510f8 /src/lib/notifications/notifications.ts
parent3371038f7d8b740f2415d3a54dc99b69e0598042 (diff)
downloadvoidsky-bc502edae150173d7b5ead0eddb739994929ac97.tar.zst
Clean up some sentry logs (#2630)
* Change prop name for sentry ingestion

* Fix test

* Add default object
Diffstat (limited to 'src/lib/notifications/notifications.ts')
-rw-r--r--src/lib/notifications/notifications.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/notifications/notifications.ts b/src/lib/notifications/notifications.ts
index 342839a7b..62d0bfc4b 100644
--- a/src/lib/notifications/notifications.ts
+++ b/src/lib/notifications/notifications.ts
@@ -40,7 +40,7 @@ export async function requestPermissionsAndRegisterToken(
       logger.DebugContext.notifications,
     )
   } catch (error) {
-    logger.error('Notifications: Failed to set push token', {error})
+    logger.error('Notifications: Failed to set push token', {message: error})
   }
 }
 
@@ -71,7 +71,7 @@ export function registerTokenChangeHandler(
         logger.DebugContext.notifications,
       )
     } catch (error) {
-      logger.error('Notifications: Failed to set push token', {error})
+      logger.error('Notifications: Failed to set push token', {message: error})
     }
   })
   return () => {