diff --git a/db.js b/db.js index aba0f8a..10ef5be 100644 --- a/db.js +++ b/db.js @@ -95,7 +95,8 @@ exports.init = function(dbPath, params, callback) { return _(logLine).pick('number', 'text'); } } - ] + ], + withUniqueId: false }); }; diff --git a/distributor.js b/distributor.js index 554fd6f..a137510 100644 --- a/distributor.js +++ b/distributor.js @@ -136,18 +136,17 @@ exports.init = function(app, callback) { buildLogLineNumbersHash[build.id] = 1; } - var logLineNumber = buildLogLineNumbersHash[build.id], - logLineId = build.id + '-' + logLineNumber; + var logLineNumber = buildLogLineNumbersHash[build.id]; db.logLines.put({ - id: logLineId, buildId: build.id, number: logLineNumber, text: data }, function(err) { if (err) { logger.error( - 'Error during write log line "' + logLineId + '":', + 'Error during write log line "' + logLineNumber + + '" for build "' + build.id + '":', err.stack || err ); } diff --git a/package.json b/package.json index aefd645..0089adc 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "colors": "1.1.2", "cron": "1.0.9", "data.io": "0.3.0", - "nlevel": "1.0.2", + "nlevel": "1.0.3", "node-static": "0.7.6", "socket.io": "1.3.5", "twostep": "0.4.1",