Skip to content

Commit

Permalink
Use info level for logging expected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
franekmagiera committed Feb 11, 2024
1 parent 2bd8180 commit 44d0a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/get-youtube-video-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function getYoutubeVideoSummary(
): Promise<Ok<string> | InternalFailure> {
const getYoutubeCaptionsResult = await getYoutubeCaptions(videoId);
if (getYoutubeCaptionsResult.result === Result.Failure) {
console.error({
console.info({
errorType: getYoutubeCaptionsResult.failure,
errorMessage: getYoutubeCaptionsResult.message || "",
});
Expand All @@ -41,7 +41,7 @@ async function getYoutubeVideoSummary(
const captions = getYoutubeCaptionsResult.data;
const summary = await getCaptionsSummary(captions);
if (summary.result === Result.Failure) {
console.error({
console.info({
errorType: summary.failure,
errorMessage: summary.message || "",
});
Expand Down

0 comments on commit 44d0a51

Please sign in to comment.