From: Ben Beltran Date: Fri, 9 Jan 2015 16:43:21 +0000 (-0600) Subject: Handles null log X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/2c1b4a0902f1125976b1d389e91dd095088d4300?ds=inline;hp=--cc Handles null log --- 2c1b4a0902f1125976b1d389e91dd095088d4300 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)); }