From 375bb5e37c34535e222e019d0b11454f5a2b1593 Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Thu, 21 Feb 2019 07:14:21 -0800 Subject: [PATCH] fix(filelist): correct logger name. (#3262) 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 699fe42ee..1023194e8 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 {