0.4.1 set to level trace debug of watched files

master
Kebler Network System Administrator 2021-03-10 13:38:06 -08:00
parent 468f560046
commit a47e025f17
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@uci-utils/watcher",
"version": "0.4.0",
"version": "0.4.1",
"description": "File System Watcher Class that emits events",
"main": "src/watcher.js",
"scripts": {

View File

@ -59,7 +59,6 @@ class Watcher extends Emitter {
})
}
async start(opts) {
if(this.watching) {
log.warn(`watching aleady running for ${this.opts.source}`)
@ -67,7 +66,7 @@ class Watcher extends Emitter {
}
if (!this._watcher) await this.init(opts)
if (this._ready) {
log.debug({watching:this._watcher.getWatched(),msg:'initial files watched'})
log.trace({watching:this._watcher.getWatched(),msg:'initial files watched'})
log.info(`now watching ${this.opts.source}`)
this._watcher.removeAllListeners() // just in case
this.watching = true