fix(Watcher): Add missing logger message in Watcher class for start method

This commit is contained in:
2024-12-04 23:02:57 +01:00
parent e8ae4c8341
commit abde25211a
3 changed files with 7 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ export class Watcher {
* start the file
*/
public async start() {
logger.log('info', `trying to start watcher for ${this.options.filePathToWatch}`);
await this.setupCleanup();
console.log(`Looking at ${this.options.filePathToWatch} for changes`);
this.smartchokWatcher.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file