Update to handle cytube-common logger initialization

This commit is contained in:
calzoneman 2016-04-27 22:33:53 -07:00
parent e7866cabc8
commit 46eaa7e090
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class BackendModule {
}
initConfig() {
logger.initialize(null, null, LegacyConfig.get('debug'));
try {
this.backendConfig = loadFromToml(BackendConfiguration, BACKEND_CONFIG_PATH);
} catch (error) {

View File

@ -20,6 +20,7 @@ export default class ProxyInterceptor {
return;
}
logger.info(`Got proxy connection from ${socket.endpoint}`);
this.frontendConnections[socket.endpoint] = socket;
socket.on('close', this.onFrontendDisconnect.bind(this, socket));
socket.on('SocketConnectEvent', this.onSocketConnect.bind(this, socket));