Use Logger and remove unused code

This commit is contained in:
Lucas Zawacki 2020-03-02 18:41:31 -03:00
parent e67781d133
commit e6423d6116
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import Users from '/imports/api/users';
import Logger from '/imports/startup/server/logger';
import { extractCredentials } from '/imports/api/common/server/helpers';
export default function emitExternalVideoEvent(messageName, ...rest) {
@ -13,7 +14,7 @@ export default function emitExternalVideoEvent(messageName, ...rest) {
if (streamer) {
streamer.emit(messageName, ...rest)
} else {
console.log("streamer not found")
Logger.info("streamer not found")
}
}
}

View File

@ -1,5 +1,4 @@
import { extractCredentials } from '/imports/api/common/server/helpers';
import { check } from 'meteor/check';
import Logger from '/imports/startup/server/logger';
const allowRecentMessages = (eventName, message) => {