aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2014-01-13 13:21:19 -0600
committerBen Beltran <ben@freshout.us>2014-01-13 13:21:19 -0600
commitbe5273269197cf913e9a9269733299814e83019c (patch)
tree26e216154203b84507b8ae94bf105b70ab3daf25
parente1387420f0cd9a846445b76affb702037f841d26 (diff)
Properly handle logging null.
-rw-r--r--lib/cobalt.js2
-rw-r--r--package.json2
2 files changed, 3 insertions, 1 deletions
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",