From c0582bd756b55fb6b73efcf42a466376d0ad79b2 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 6 Sep 2023 16:16:48 +0200 Subject: [PATCH] fix: Use strapi.log.warn instead of logging warnings with console.log --- server/config/type.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/config/type.js b/server/config/type.js index 488cbad..768744e 100644 --- a/server/config/type.js +++ b/server/config/type.js @@ -116,9 +116,8 @@ const ConfigType = class ConfigType { await strapi.entityService.update(this.queryString, entity.id, { data: query, }); - } catch(error) { - console.warn(error); - console.log("Use Query Engine API instead of Entity Service API"); + } catch (error) { + strapi.log.warn(logMessage(`Use Query Engine API instead of Entity Service API for type ${this.configPrefix}`)); await queryAPI.update({ where: combinedUidWhereFilter, data: query }); }