Skip to content

Commit

Permalink
Update src/dutil.js
Browse files Browse the repository at this point in the history
Replace MAX_CHARS_IN_LOG_LINE with TRIM_DEFAULT_LENGTH
  • Loading branch information
dhruvbird committed Aug 26, 2012
1 parent d4f6a47 commit 7999811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ function log_it(level) {
astr = arg.toString();

// console.log(astr.length);
if (astr.length > MAX_CHARS_IN_LOG_LINE) {
if (astr.length > TRIM_DEFAULT_LENGTH) {
// We limit the writes because we are running into a
// bug at this point of time.
more_hint = ' ... ' + (astr.length - MAX_CHARS_IN_LOG_LINE) + ' more characters';
astr = astr.substr(0, MAX_CHARS_IN_LOG_LINE);
more_hint = ' ... ' + (astr.length - TRIM_DEFAULT_LENGTH) + ' more characters';
astr = astr.substr(0, TRIM_DEFAULT_LENGTH);
}

process.stdout.write(astr);
Expand Down

0 comments on commit 7999811

Please sign in to comment.