aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logger.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 01:12:22 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:46:50 +0200
commitf56ec76008627bb5cb139124f90101bbb83af06d (patch)
tree84d44c8fe007dcef1d9877c6e3f6db2173d2085c /lib/logger.js
parent68de408908a2cec9b0df1f67fe91939747e774e7 (diff)
downloadbugzilla-triage-f56ec76008627bb5cb139124f90101bbb83af06d.tar.gz
Allow working with the log record without a comment.
Fixes #71
Diffstat (limited to 'lib/logger.js')
-rw-r--r--lib/logger.js4
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;