*Remove the logger object from the PluginAPI object

This commit is contained in:
Derrick Hammer 2023-01-13 17:53:37 -05:00
parent d5138c3860
commit eb2a19121f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 6 deletions

View File

@ -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(),
}); });