diff options
Diffstat (limited to 'lib/logger.js')
-rw-r--r-- | lib/logger.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/logger.js b/lib/logger.js index dce3bad..ce96f69 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -24,8 +24,8 @@ exports.initialize = function initialize(aMap) { }; exports.addLogRecord = function addLogRecord(rec) { - if (myStorage.storage.logs[rec.key]) { - myStorage.storage.logs[rec.key].comment += "<br/>\n" + comment; + if (myStorage.storage.logs[rec.key] && myStorage.storage.logs[rec.key].comment) { + myStorage.storage.logs[rec.key].comment += "<br/>\n" + rec.comment; } else { myStorage.storage.logs[rec.key] = rec; |