提交 c5dd0dad 编写于 作者: NoSubject's avatar NoSubject

后端脚本print方法增加时间等信息

上级 51ea0178
......@@ -824,6 +824,8 @@ var _Actions = {
};
bind.Actions = _Actions;
print = function(str, type){}
bind.print = print;
bind.library = library;
bind.data = this.data;
......
......@@ -900,6 +900,9 @@ var _org = {
}
};
print = function(str, type){}
bind.print = print;
bind.org = _org;
bind.library = library;
bind.define = _define;
......
......@@ -815,6 +815,15 @@ var _Actions = {
bind.Actions = _Actions;
var oPrint = print;
print = function(str, type){
var d = new Date();
var t = (type || "PRINT").toUpperCase();
var l = "[Script]";
oPrint(d.format("db")+"."+d.getMilliseconds()+" "+t+" "+l+" "+str);
}
bind.print = print;
bind.library = library;
bind.data = this.data;
bind.workContext = wrapWorkContext;
......@@ -911,4 +920,4 @@ bind.request = {
return null
}
}
}
\ No newline at end of file
}
......@@ -3259,6 +3259,14 @@ var _org = {
}
};
var oPrint = print;
print = function(str, type){
var d = new Date();
var t = (type || "PRINT").toUpperCase();
var l = "[ServiceScript]";
oPrint(d.format("db")+"."+d.getMilliseconds()+" "+t+" "+l+" "+str);
}
bind.print = print;
bind.org = _org;
bind.library = library;
bind.define = _define;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册