diff --git a/src/course-home/data/api.js b/src/course-home/data/api.js index a9fc76b1..20636381 100644 --- a/src/course-home/data/api.js +++ b/src/course-home/data/api.js @@ -1,6 +1,9 @@ import { camelCaseObject, getConfig } from '@edx/frontend-platform'; import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth'; -import { logError } from '@edx/frontend-platform/logging'; +import { + logError, + logInfo, +} from '@edx/frontend-platform/logging'; function normalizeCourseHomeCourseMetadata(metadata) { const data = camelCaseObject(metadata); @@ -53,7 +56,7 @@ export function normalizeOutlineBlocks(courseId, blocks) { break; default: - logError(`Unexpected course block type: ${block.type} with ID ${block.id}. Expected block types are course, chapter, and sequential.`); + logInfo(`Unexpected course block type: ${block.type} with ID ${block.id}. Expected block types are course, chapter, and sequential.`); } }); diff --git a/src/courseware/data/api.js b/src/courseware/data/api.js index f65171ab..f343c1a6 100644 --- a/src/courseware/data/api.js +++ b/src/courseware/data/api.js @@ -1,6 +1,9 @@ import { getConfig, camelCaseObject } from '@edx/frontend-platform'; import { getAuthenticatedHttpClient, getAuthenticatedUser } from '@edx/frontend-platform/auth'; -import { logError } from '@edx/frontend-platform/logging'; +import { + logError, + logInfo, +} from '@edx/frontend-platform/logging'; export function normalizeBlocks(courseId, blocks) { const models = { @@ -43,7 +46,7 @@ export function normalizeBlocks(courseId, blocks) { }; break; default: - logError(`Unexpected course block type: ${block.type} with ID ${block.id}. Expected block types are course, chapter, sequential, and vertical.`); + logInfo(`Unexpected course block type: ${block.type} with ID ${block.id}. Expected block types are course, chapter, sequential, and vertical.`); } });