*Remove the logger object from the PluginAPI object
This commit is contained in:
parent
d5138c3860
commit
eb2a19121f
|
@ -32,12 +32,10 @@ class PluginAPI extends EventEmitter2 {
|
||||||
|
|
||||||
constructor({
|
constructor({
|
||||||
config,
|
config,
|
||||||
logger,
|
|
||||||
server,
|
server,
|
||||||
swarm,
|
swarm,
|
||||||
}: {
|
}: {
|
||||||
config: Config;
|
config: Config;
|
||||||
logger: Logger;
|
|
||||||
server: RPCServer;
|
server: RPCServer;
|
||||||
swarm: any;
|
swarm: any;
|
||||||
}) {
|
}) {
|
||||||
|
@ -47,7 +45,6 @@ class PluginAPI extends EventEmitter2 {
|
||||||
maxListeners: 0,
|
maxListeners: 0,
|
||||||
});
|
});
|
||||||
this._config = config;
|
this._config = config;
|
||||||
this._logger = logger;
|
|
||||||
this._server = server;
|
this._server = server;
|
||||||
this._swarm = swarm;
|
this._swarm = swarm;
|
||||||
}
|
}
|
||||||
|
@ -74,8 +71,6 @@ class PluginAPI extends EventEmitter2 {
|
||||||
throw new Error("not implemented and should not be called");
|
throw new Error("not implemented and should not be called");
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logger: Logger;
|
|
||||||
|
|
||||||
get logger(): Logger {
|
get logger(): Logger {
|
||||||
throw new Error("not implemented and should not be called");
|
throw new Error("not implemented and should not be called");
|
||||||
}
|
}
|
||||||
|
@ -115,7 +110,6 @@ export function getPluginAPI(): PluginAPI {
|
||||||
if (!pluginAPI) {
|
if (!pluginAPI) {
|
||||||
pluginAPI = new PluginAPI({
|
pluginAPI = new PluginAPI({
|
||||||
config,
|
config,
|
||||||
logger: log,
|
|
||||||
server: getRpcServer(),
|
server: getRpcServer(),
|
||||||
swarm: getSwarm(),
|
swarm: getSwarm(),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue