Skip to content

Commit 8d5f252

Browse files
IdanCoshellscape
authored andcommitted
replace console.log with internal log function (#856)
1 parent c9fe53d commit 8d5f252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var onSocketMsg = {
107107
});
108108
sendMsg("Warnings", strippedWarnings);
109109
for(var i = 0; i < strippedWarnings.length; i++)
110-
console.warn(strippedWarnings[i]);
110+
log("warning", strippedWarnings[i]);
111111
if(useWarningOverlay) overlay.showMessage(warnings);
112112

113113
if(initial) return initial = false;
@@ -120,7 +120,7 @@ var onSocketMsg = {
120120
});
121121
sendMsg("Errors", strippedErrors);
122122
for(var i = 0; i < strippedErrors.length; i++)
123-
console.error(strippedErrors[i]);
123+
log("error", strippedErrors[i]);
124124
if(useErrorOverlay) overlay.showMessage(errors);
125125
},
126126
error: function(error) {

0 commit comments

Comments
 (0)