0.4.1 set to level trace debug of watched files
parent
468f560046
commit
a47e025f17
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@uci-utils/watcher",
|
"name": "@uci-utils/watcher",
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"description": "File System Watcher Class that emits events",
|
"description": "File System Watcher Class that emits events",
|
||||||
"main": "src/watcher.js",
|
"main": "src/watcher.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -59,7 +59,6 @@ class Watcher extends Emitter {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async start(opts) {
|
async start(opts) {
|
||||||
if(this.watching) {
|
if(this.watching) {
|
||||||
log.warn(`watching aleady running for ${this.opts.source}`)
|
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._watcher) await this.init(opts)
|
||||||
if (this._ready) {
|
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}`)
|
log.info(`now watching ${this.opts.source}`)
|
||||||
this._watcher.removeAllListeners() // just in case
|
this._watcher.removeAllListeners() // just in case
|
||||||
this.watching = true
|
this.watching = true
|
||||||
|
|
Loading…
Reference in New Issue