Im[rove make string for string arguments(not use stringify)

parent 6e382760
......@@ -26,7 +26,10 @@ const logger = {
_makeString : function(args) {
let string = '';
for (var i = 0; i < args.length; i++) {
string += JSON.stringify(args[i], "", 4) + ' ';
if(typeof(args[i]) === "string")
string += args[i] + ' ';
else
string += JSON.stringify(args[i], "", 4) + ' ';
}
return string;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment