(end)
| 66 | } |
| 67 | |
| 68 | _cleanOldStream(end) { |
| 69 | logger.debug('ServerAccessLogger: cleaning old stream'); |
| 70 | |
| 71 | if (!this.stream) { |
| 72 | return; |
| 73 | } |
| 74 | |
| 75 | // remove the 'close' handler. |
| 76 | this.stream.removeAllListeners(); |
| 77 | if (end) { |
| 78 | this.stream.end(); |
| 79 | } |
| 80 | this._stat = undefined; |
| 81 | this.stream = undefined; |
| 82 | this._waitingDrain = false; |
| 83 | } |
| 84 | |
| 85 | _reopenStream() { |
| 86 | fs.open(this._filename, 'a', 0o644, (err, fd) => { |
no test coverage detected