From 39e57eccc1973e77ce85c357f6712383a7cc2779 Mon Sep 17 00:00:00 2001 From: Brendon Duncan Date: Thu, 13 Sep 2018 16:58:33 +1200 Subject: [PATCH] Logging the Leanplum config to the console to make it easy to check the correct values are being used. --- Gruntfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index a38f87d5d..234cee4d4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -434,10 +434,14 @@ module.exports = function(grunt) { } var leanplumForEnv = env === 'prod' ? leanplumConfig.prod : leanplumConfig.dev; + var appId = leanplumForEnv.appId; + var key = leanplumForEnv.key; + console.log('Leanplum app ID: "' + appId + '"'); + console.log('Leanplum key: "' + key + '"'); var newContent = '// Generated\n' + content - .replace("appId: ''","appId: '" + leanplumForEnv.appId + "'") - .replace("key: ''", "key: '" + leanplumForEnv.key + "'"); + .replace("appId: ''","appId: '" + appId + "'") + .replace("key: ''", "key: '" + key + "'"); return newContent; } };