mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(console) log
This commit is contained in:
parent
5beca6c06d
commit
d5bd02af88
1 changed files with 9 additions and 9 deletions
|
|
@ -296,20 +296,20 @@
|
|||
}
|
||||
|
||||
|
||||
function log(pConnNum, pStr, pType) {
|
||||
var lRet,
|
||||
lType = ' ';
|
||||
function log(connNum, str, typeParam) {
|
||||
var ret,
|
||||
type = ' ';
|
||||
|
||||
if (pStr) {
|
||||
if (str) {
|
||||
|
||||
if (pType)
|
||||
lType += pType + ':';
|
||||
if (type)
|
||||
type += typeParam + ':';
|
||||
|
||||
lRet = 'client #' + pConnNum + lType + pStr;
|
||||
ret = 'client #' + connNum + type + str;
|
||||
|
||||
Util.log(lRet);
|
||||
Util.log(ret);
|
||||
}
|
||||
|
||||
return lRet;
|
||||
return ret;
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue