From b1a47ff075ee72d18e6f3318fae8f0b47320c0b1 Mon Sep 17 00:00:00 2001 From: Jim LAURIE Date: Thu, 31 Jan 2019 15:14:50 +0100 Subject: [PATCH] Disable warn log --- packages/strapi-hook-knex/lib/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/strapi-hook-knex/lib/index.js b/packages/strapi-hook-knex/lib/index.js index d1bcf92f45..b71b7ecce6 100644 --- a/packages/strapi-hook-knex/lib/index.js +++ b/packages/strapi-hook-knex/lib/index.js @@ -156,7 +156,11 @@ module.exports = strapi => { fs.mkdirSync(fileDirectory); } - options.log = undefined; + // Disable warn log + // .returning() is not supported by sqlite3 and will not have any effect. + options.log = { + warn: () => {} + }; break; }