Separate the logging #27

Open
lecris wants to merge 6 commits from lecris/matrix-puppeteer-line:logger into testing
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 855966e547 - Show all commits

View File

@ -43,7 +43,7 @@ export default class Client {
set_userID(ID) { set_userID(ID) {
this.userID = ID this.userID = ID
if (this.userID) { if (this.userID) {
this.log = require("loglevel").getLogger(`API/${this.userID}/${this.connID}`) this.log = logger.getLogger(`API/${this.userID}/${this.connID}`)
this.log.setLevel(logger.getLogger(`API/${this.connID}`).getLevel()) this.log.setLevel(logger.getLogger(`API/${this.connID}`).getLevel())
} }
} }