mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Improve error logging / fix linting
This commit is contained in:
parent
dc6c047aec
commit
f2d23626a5
1 changed files with 2 additions and 2 deletions
|
|
@ -305,7 +305,7 @@ const fetchCachedYouTubeTranscript = async (
|
|||
`youtube-transcripts/${videoId}/${transcriptHash}.${promptHash}.html`
|
||||
)
|
||||
} catch (err) {
|
||||
logger.info(`unable to fetch cached transcript: ${err}`)
|
||||
logger.info(`unable to fetch cached transcript`, { error: err })
|
||||
}
|
||||
|
||||
return undefined
|
||||
|
|
@ -326,7 +326,7 @@ const cacheYouTubeTranscript = async (
|
|||
transcript
|
||||
)
|
||||
} catch (err) {
|
||||
logger.info(`unable to cache transcript: ${err}`)
|
||||
logger.info(`unable to cache transcript`, { error: err })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue