From: Ben Beltran Date: Fri, 9 Jan 2015 16:43:21 +0000 (-0600) Subject: Handles null log X-Git-Tag: v1.1.0~6 X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/deb2dffd5eff50924d33ebc2ea716c6423588518?ds=sidebyside Handles null log --- diff --git a/lib/cobalt.js b/lib/cobalt.js index d129714..4c6944d 100644 --- a/lib/cobalt.js +++ b/lib/cobalt.js @@ -147,6 +147,8 @@ Class(Cobalt, 'Console')({ for (i = 1; i < arguments.length; i++) { if (typeof arguments[i] === 'undefined') { logObjectArray.push(co.buildLog("undefined", severity)); + } else if (arguments[i] === null) { + logObjectArray.push(co.buildLog("null", severity)); } else { logObjectArray.push(co.buildLog(arguments[i], severity)); }