mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Modify cc.log code
This commit is contained in:
+1
-4
@@ -471,10 +471,7 @@ cc._initDebugSetting = function (mode) {
|
||||
* @param {any} obj - A JavaScript string containing zero or more substitution strings.
|
||||
* @param {any} ...subst - JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.
|
||||
*/
|
||||
if (CC_EDITOR) {
|
||||
cc.log = Editor.log;
|
||||
}
|
||||
else if (console.log.bind) {
|
||||
if (console.log.bind) {
|
||||
// use bind to avoid pollute call stacks
|
||||
cc.log = console.log.bind(console);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user