Skip to content

Commit

Permalink
fix to add log message number
Browse files Browse the repository at this point in the history
  • Loading branch information
TAGOMORI Satoshi committed Apr 1, 2011
1 parent e705071 commit 2bc3bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scribe_client.js
Expand Up @@ -26,7 +26,7 @@ var push_lines = function() {
var logheader = '192.168.0.1 - - ' + now + ' ';
var lines = [];
for (var i = 0; i < num; i++) {
lines.push(logheader + str_times('x', Math.floor(Math.random() * 100)) + "\n");
lines.push(logheader + (counter + i) + ' ' + str_times('x', Math.floor(Math.random() * 100)) + "\n");
}
var logs = lines.map(function(x){ return new ttypes.LogEntry({category: 'thrifttest', message: x}); });
var result = client.Log(logs, function(err, success){ if (! err){ counter += num; }});
Expand Down

0 comments on commit 2bc3bc7

Please sign in to comment.