From 0a36117885fef807f0068e20eeb737949e9f7af2 Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Thu, 13 Aug 2020 10:53:04 -0700 Subject: [PATCH] Replace console "WARNING" log calls with warn call (#4171) --- core/inject.js | 2 +- core/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/inject.js b/core/inject.js index d299d9997..4ef336f5e 100644 --- a/core/inject.js +++ b/core/inject.js @@ -311,7 +311,7 @@ Blockly.createMainWorkspace_ = function(svg, options, blockDragSurface, } if (e) { if (!e.group && object) { - console.log('WARNING: Moved object in bounds but there was no' + + console.warn('Moved object in bounds but there was no' + ' event group. This may break undo.'); } if (oldGroup !== null) { diff --git a/core/utils.js b/core/utils.js index 4bbffdca5..fa7e42698 100644 --- a/core/utils.js +++ b/core/utils.js @@ -250,7 +250,7 @@ Blockly.utils.checkMessageReferences = function(message) { for (var i = 0; i < m.length; i++) { var msgKey = m[i].toUpperCase(); if (msgTable[msgKey.slice(6, -1)] == undefined) { - console.log('WARNING: No message string for ' + m[i] + ' in ' + message); + console.warn('No message string for ' + m[i] + ' in ' + message); validSoFar = false; // Continue to report other errors. } }