Skip to content

Commit 375bb5e

Browse files
authored
fix(filelist): correct logger name. (#3262)
Append the state of the browser if it gets lost.
1 parent c43f584 commit 375bb5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class Browser {
1515
this.id = id
1616
this.fullName = fullName
1717
this.name = helper.browserFullNameToShort(fullName)
18-
this.state = CONNECTED
1918
this.lastResult = new BrowserResult()
2019
this.disconnectsCount = 0
2120
this.activeSockets = [socket]
@@ -30,6 +29,7 @@ class Browser {
3029

3130
this.noActivityTimeoutId = null
3231
this.pendingDisconnect = null
32+
this.setState(CONNECTED)
3333
}
3434

3535
init () {

lib/file-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const _ = require('lodash')
1010
const File = require('./file')
1111
const Url = require('./url')
1212
const helper = require('./helper')
13-
const log = require('./logger').create('watcher')
13+
const log = require('./logger').create('filelist')
1414
const createPatternObject = require('./config').createPatternObject
1515

1616
class FileList {

0 commit comments

Comments
 (0)