diff options
| author | Ben Beltran <ben@freshout.us> | 2014-01-13 13:21:19 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@freshout.us> | 2014-01-13 13:21:19 -0600 |
| commit | be5273269197cf913e9a9269733299814e83019c (patch) | |
| tree | 26e216154203b84507b8ae94bf105b70ab3daf25 /lib | |
| parent | e1387420f0cd9a846445b76affb702037f841d26 (diff) | |
Properly handle logging null.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cobalt.js | 2 |
1 files changed, 2 insertions, 0 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; |