fix: Duplicate plugin registration logging in debug
This commit is contained in:
@@ -81,12 +81,16 @@ export class PluginManager {
|
||||
.get(plugin.type)!
|
||||
.push({ ...plugin, priority: plugin.priority ?? PluginPriority.Normal });
|
||||
|
||||
Logger.debug(
|
||||
"plugins",
|
||||
`Plugin(type=${plugin.type}) registered ${
|
||||
"name" in plugin.value ? plugin.value.name : ""
|
||||
} ${plugin.description ? `(${plugin.description})` : ""}`
|
||||
);
|
||||
// Do not log plugin registration in forked worker processes, one log from the master process
|
||||
// is enough. This can be detected by the presence of `process.send`.
|
||||
if (process.send === undefined) {
|
||||
Logger.debug(
|
||||
"plugins",
|
||||
`Plugin(type=${plugin.type}) registered ${
|
||||
"name" in plugin.value ? plugin.value.name : ""
|
||||
} ${plugin.description ? `(${plugin.description})` : ""}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user