mirror of https://github.com/calzoneman/sync.git
Update to handle cytube-common logger initialization
This commit is contained in:
parent
e7866cabc8
commit
46eaa7e090
|
@ -20,6 +20,7 @@ class BackendModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
initConfig() {
|
initConfig() {
|
||||||
|
logger.initialize(null, null, LegacyConfig.get('debug'));
|
||||||
try {
|
try {
|
||||||
this.backendConfig = loadFromToml(BackendConfiguration, BACKEND_CONFIG_PATH);
|
this.backendConfig = loadFromToml(BackendConfiguration, BACKEND_CONFIG_PATH);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -20,6 +20,7 @@ export default class ProxyInterceptor {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info(`Got proxy connection from ${socket.endpoint}`);
|
||||||
this.frontendConnections[socket.endpoint] = socket;
|
this.frontendConnections[socket.endpoint] = socket;
|
||||||
socket.on('close', this.onFrontendDisconnect.bind(this, socket));
|
socket.on('close', this.onFrontendDisconnect.bind(this, socket));
|
||||||
socket.on('SocketConnectEvent', this.onSocketConnect.bind(this, socket));
|
socket.on('SocketConnectEvent', this.onSocketConnect.bind(this, socket));
|
||||||
|
|
Loading…
Reference in New Issue