* Processes a single log line. * * @param {String} a log line * @private
(line)
| 261 | * @private |
| 262 | */ |
| 263 | async processLogLine_(line) { |
| 264 | if (line.length > 0) { |
| 265 | try { |
| 266 | const fields = this.csvParser_.parseLine(line); |
| 267 | await this.dispatchLogRow_(fields); |
| 268 | } catch (e) { |
| 269 | this.printError(`line ${this.lineNum_ + 1}: ${e.message || e}\n${e.stack}`); |
| 270 | } |
| 271 | } |
| 272 | this.lineNum_++; |
| 273 | } |
| 274 | } |
no test coverage detected