From: Ben Beltran Date: Mon, 13 Jan 2014 19:21:19 +0000 (-0600) Subject: Properly handle logging null. X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/be5273269197cf913e9a9269733299814e83019c?ds=inline;hp=--cc Properly handle logging null. --- be5273269197cf913e9a9269733299814e83019c 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",