Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update src/dutil.js

Replace MAX_CHARS_IN_LOG_LINE with TRIM_DEFAULT_LENGTH
  • Loading branch information...
commit 7999811e8a0a7c4bb0d40ecb93c04cb58f160bcc 1 parent d4f6a47
@dhruvbird authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/dutil.js
View
6 src/dutil.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.