From 79860d1a06429dd91b75d075039a47596af5ce29 Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Fri, 8 Feb 2019 15:29:14 -0800 Subject: [PATCH] fix(filelist): correct logger name. Append the state of the browser if it gets lost. --- lib/browser.js | 2 +- lib/file-list.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/browser.js b/lib/browser.js index f4389c172..db343012c 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -15,7 +15,6 @@ class Browser { this.id = id this.fullName = fullName this.name = helper.browserFullNameToShort(fullName) - this.state = CONNECTED this.lastResult = new BrowserResult() this.disconnectsCount = 0 this.activeSockets = [socket] @@ -30,6 +29,7 @@ class Browser { this.noActivityTimeoutId = null this.pendingDisconnect = null + this.setState(CONNECTED) } init () { diff --git a/lib/file-list.js b/lib/file-list.js index 135d0b15c..bdc48b908 100644 --- a/lib/file-list.js +++ b/lib/file-list.js @@ -10,7 +10,7 @@ const _ = require('lodash') const File = require('./file') const Url = require('./url') const helper = require('./helper') -const log = require('./logger').create('watcher') +const log = require('./logger').create('filelist') const createPatternObject = require('./config').createPatternObject class FileList {