Replace console "WARNING" log calls with warn call (#4171)

This commit is contained in:
Monica Kozbial
2020-08-13 10:53:04 -07:00
committed by GitHub
parent 9f1c4fb876
commit 0a36117885
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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.
}
}