Implement logging system

This commit is contained in:
Paul Frazee 2023-01-02 17:38:13 -06:00
parent 99cec71ed7
commit f6a0e634d7
39 changed files with 442 additions and 125 deletions

View file

@ -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(),
)
}
}
}