Permalink
Browse files

make bad lines logging more clear

  • Loading branch information...
1 parent d86a38e commit 4bd7597068da5995f323edc3973e0822da6190df @mrtazz mrtazz committed Aug 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 stats.js
View
@@ -127,7 +127,7 @@ config.configFile(process.argv[2], function (config, oldConfig) {
var sampleRate = 1;
var fields = bits[i].split("|");
if (fields[1] === undefined) {
- l.log('Bad line: ' + fields);
+ l.log('Bad line: ' + fields + ' in msg "' + metrics[midx] +'"');
counters["statsd.bad_lines_seen"]++;
stats['messages']['bad_lines_seen']++;
continue;

0 comments on commit 4bd7597

Please sign in to comment.