()
| 65 | } |
| 66 | |
| 67 | private async update() { |
| 68 | const currentMostRecentLogFileName = await this.getMostRecentLogFilePath(); |
| 69 | if (currentMostRecentLogFileName === this.mostRecentLogFileName) { |
| 70 | return; |
| 71 | } |
| 72 | this.stopTailingLog(); |
| 73 | |
| 74 | this.mostRecentLogFileName = currentMostRecentLogFileName; |
| 75 | |
| 76 | this.startTailingLog(); |
| 77 | } |
| 78 | |
| 79 | private async getMostRecentLogFilePath() { |
| 80 | const fileNames = await fs.readdir(logsDir); |
no test coverage detected