From: Ben Beltran Date: Mon, 13 Jan 2014 19:21:19 +0000 (-0600) Subject: Properly handle logging null. X-Git-Tag: v1.1.0~23 X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/9a8b488630f8ab958efd9c16d8b56d0ca7dc12ae Properly handle logging null. --- diff --git a/lib/cobalt.js b/lib/cobalt.js index d2d2c13..f949b6a 100644 --- a/lib/cobalt.js +++ b/lib/cobalt.js @@ -93,6 +93,8 @@ buildLog : function (item, level) { var co = this, oldItem, logObject = {}; + item = item || {}; + if (!item._cobaltLog) { logObject.message = item; logObject._cobaltLog = true; diff --git a/package.json b/package.json index 68ce318..a4205c9 100644 --- a/package.json +++ b/package.json @@ -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",