]> git.r.bdr.sh - rbdr/cologne/commitdiff
Handles null log
authorBen Beltran <redacted>
Fri, 9 Jan 2015 16:43:21 +0000 (10:43 -0600)
committerBen Beltran <redacted>
Fri, 9 Jan 2015 16:43:21 +0000 (10:43 -0600)
lib/cobalt.js

index d129714c98271e8ed75da9b9d7959147dc2bcd38..4c6944d2617a64b9a009cf8748f19325f73c0cf7 100644 (file)
@@ -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));
         }