]> git.r.bdr.sh - rbdr/cologne/commitdiff
Properly handle logging null.
authorBen Beltran <redacted>
Mon, 13 Jan 2014 19:21:19 +0000 (13:21 -0600)
committerBen Beltran <redacted>
Mon, 13 Jan 2014 19:21:19 +0000 (13:21 -0600)
lib/cobalt.js
package.json

index d2d2c13c7fd37b79dc2e4fe4f6299b24f962c779..f949b6a925f8aa9ad5a069c6b0b66b65155ca59b 100644 (file)
@@ -93,6 +93,8 @@
       buildLog : function (item, level) {
         var co = this, oldItem, logObject = {};
 
+        item = item || {};
+
         if (!item._cobaltLog) {
           logObject.message = item;
           logObject._cobaltLog = true;
index 68ce318dc1f54eb730942a7cf04ebef81b584c17..a4205c9c8194105b82b70a56f76a419f813d31ff 100644 (file)
@@ -17,7 +17,7 @@
       "url" : "http://github.com/ktlacaelel"
     }
   ],
-  "version" : "0.1.9",
+  "version" : "0.1.10",
   "dependencies" : {
     "neon" : "1.0.x",
     "socket.io-client" : "0.9.x",