diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 17:38:13 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 17:38:13 -0600 |
commit | f6a0e634d78eb97d1d877033bf620ea982038731 (patch) | |
tree | 5d6b7ccbc8f6a587c3910c760bceeefda0c0a291 /src/state/lib/api.ts | |
parent | 99cec71ed798b29079eb474acd6f7cc799b51a51 (diff) | |
download | voidsky-f6a0e634d78eb97d1d877033bf620ea982038731.tar.zst |
Implement logging system
Diffstat (limited to 'src/state/lib/api.ts')
-rw-r--r-- | src/state/lib/api.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts index 31df20468..6bbc43271 100644 --- a/src/state/lib/api.ts +++ b/src/state/lib/api.ts @@ -99,7 +99,7 @@ export async function post( ) { encoding = 'image/jpeg' } else { - console.error( + store.log.warn( 'Unexpected image format for thumbnail, skipping', thumbLocal.uri, ) @@ -126,7 +126,10 @@ export async function post( }, } as AppBskyEmbedExternal.Main } catch (e: any) { - console.error('Failed to fetch link meta', link.value, e) + store.log.warn( + `Failed to fetch link meta for ${link.value}`, + e.toString(), + ) } } } |