about summary refs log tree commit diff
path: root/src/view/com/post/PostText.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-02 17:38:13 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-02 17:38:13 -0600
commitf6a0e634d78eb97d1d877033bf620ea982038731 (patch)
tree5d6b7ccbc8f6a587c3910c760bceeefda0c0a291 /src/view/com/post/PostText.tsx
parent99cec71ed798b29079eb474acd6f7cc799b51a51 (diff)
downloadvoidsky-f6a0e634d78eb97d1d877033bf620ea982038731.tar.zst
Implement logging system
Diffstat (limited to 'src/view/com/post/PostText.tsx')
-rw-r--r--src/view/com/post/PostText.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/post/PostText.tsx b/src/view/com/post/PostText.tsx
index 436768292..4e8761eb5 100644
--- a/src/view/com/post/PostText.tsx
+++ b/src/view/com/post/PostText.tsx
@@ -23,7 +23,9 @@ export const PostText = observer(function PostText({
     }
     const newModel = new PostModel(store, uri)
     setModel(newModel)
-    newModel.setup().catch(err => console.error('Failed to fetch post', err))
+    newModel
+      .setup()
+      .catch(err => store.log.error('Failed to fetch post', err.toString()))
   }, [uri, model?.uri, store])
 
   // loading