Implement logging system
This commit is contained in:
parent
99cec71ed7
commit
f6a0e634d7
39 changed files with 442 additions and 125 deletions
|
@ -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(),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue