(req, value)
| 78 | } |
| 79 | |
| 80 | end (req, value) { |
| 81 | value = value === undefined ? null : value; |
| 82 | value = value + ''; |
| 83 | if (value.length > this._maxResultLogLength) { |
| 84 | value = value.substr(0, this._maxResultLogLength) + |
| 85 | ` ... (truncated ${value.length - this._maxResultLogLength} bytes)`; |
| 86 | } |
| 87 | this.log(req, value.replace(/\u0007/gi, ''), 'result'); |
| 88 | } |
| 89 | |
| 90 | } |
| 91 |