replace logger.warn with warning

This commit is contained in:
Hongbo Wu
2024-03-27 15:41:13 +08:00
parent e2b38d3e91
commit 92abfed2df
3 changed files with 3 additions and 3 deletions

View File

@ -470,7 +470,7 @@ export const processYouTubeTranscript = async (
const youtube = new YouTubeClient()
const video = await youtube.getVideo(jobData.videoId)
if (!video) {
logger.warn('no video found for youtube url', {
logger.warning('no video found for youtube url', {
url: libraryItem.originalUrl,
})
return

View File

@ -158,7 +158,7 @@ export const createWorker = (connection: ConnectionOptions) =>
case EXPORT_ALL_ITEMS_JOB_NAME:
return exportAllItems(job.data)
default:
logger.warn(`[queue-processor] unhandled job: ${job.name}`)
logger.warning(`[queue-processor] unhandled job: ${job.name}`)
}
},
{

View File

@ -47,7 +47,7 @@ export const componentsForCachedReadingPositionKey = (
libraryItemID,
}
} catch (error) {
logger.log('exception getting cache key components', { cacheKey, error })
logger.error('exception getting cache key components', { cacheKey, error })
}
return undefined
}