Skip to content

Commit 6e49074

Browse files
committed
app: replace lib/logger.js with daily-file-writer
1 parent 00f32d7 commit 6e49074

File tree

2 files changed

+5
-76
lines changed

2 files changed

+5
-76
lines changed

app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Router = require('./lib/router')
2020
const Panels = require('./lib/panels')
2121
const utils = require('./lib/utils')
2222
const About = require('./lib/about')
23-
const Logger = require('./lib/logger')
23+
const Logger = require('daily-file-writer')
2424
const Notifications = require('./lib/notifications')
2525

2626
module.exports = window.App = App
@@ -548,7 +548,7 @@ App.prototype.checkConnLogging = function checkConnLogging(conn) {
548548
const l = new Logger({
549549
path: fp
550550
})
551-
l._createStream()
551+
l.open()
552552
this.loggers.set(conn, l)
553553
}
554554
} else if (!enabled && logger) {
@@ -566,7 +566,7 @@ App.prototype.checkConnLogging = function checkConnLogging(conn) {
566566
const l = new Logger({
567567
path: fp
568568
})
569-
l._createStream()
569+
l.open()
570570
this.loggers.set(conn, l)
571571
}
572572
}
@@ -589,7 +589,7 @@ App.prototype.checkChannelLogging = function checkChannelLogging(chan) {
589589
const l = new Logger({
590590
path: fp
591591
})
592-
l._createStream()
592+
l.open()
593593
this.loggers.set(chan, l)
594594
}
595595
} else if (!enabled && logger) {
@@ -606,7 +606,7 @@ App.prototype.checkChannelLogging = function checkChannelLogging(chan) {
606606
const l = new Logger({
607607
path: fp
608608
})
609-
l._createStream()
609+
l.open()
610610
this.loggers.set(chan, l)
611611
}
612612
}

lib/logger.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)