chore(backend): Verander API call logging niveau

Als de Dwengo API fouten geeft, dan hoeft dit maar als warning
afgehandeld worden, niet als error.
This commit is contained in:
Tibo De Peuter 2025-03-04 16:33:37 +01:00
parent 74ecd34538
commit 57a16acbdd
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ export async function getLearningObjectById(
);
if (!metadata) {
logger.error(`⚠️ WARNING: Learning object "${hruid}" not found.`);
logger.warn(`⚠️ WARNING: Learning object "${hruid}" not found.`);
return null;
}
@ -80,7 +80,7 @@ async function fetchLearningObjects(
!learningPathResponse.success ||
!learningPathResponse.data?.length
) {
logger.error(
logger.warn(
`⚠️ WARNING: Learning path "${hruid}" exists but contains no learning objects.`
);
return [];

View file

@ -32,7 +32,7 @@ export async function fetchLearningPaths(
);
if (!learningPaths || learningPaths.length === 0) {
logger.error(`⚠️ WARNING: No learning paths found for ${source}.`);
logger.warn(`⚠️ WARNING: No learning paths found for ${source}.`);
return {
success: false,
source,