Permalink
Browse files

Update src/dutil.js

Replace MAX_CHARS_IN_LOG_LINE with TRIM_DEFAULT_LENGTH
  • Loading branch information...
1 parent d4f6a47 commit 7999811e8a0a7c4bb0d40ecb93c04cb58f160bcc @dhruvbird committed Aug 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/dutil.js
View
@@ -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);

0 comments on commit 7999811

Please sign in to comment.