refactor(console) log

This commit is contained in:
coderaiser 2014-04-29 09:24:51 -04:00
parent 5beca6c06d
commit d5bd02af88

View file

@ -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;
}
})();