Skip to content

Commit 74022fc

Browse files
committed
Add version to plugin load log
1 parent 06ffc09 commit 74022fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/node/plugin.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ const loadPlugin = async (pluginPath: string, httpServer: HttpServer, args: Args
3333
try {
3434
const plugin: Plugin = require(pluginPath)
3535
plugin.activate(httpServer, args)
36-
logger.debug("Loaded plugin", field("name", path.basename(pluginPath)))
36+
37+
logger.debug(
38+
"Loaded plugin",
39+
field("name", path.basename(pluginPath)),
40+
field("version", require(path.join(pluginPath, "package.json")).version || "n/a"),
41+
)
3742
} catch (error) {
3843
if (error.code !== "MODULE_NOT_FOUND") {
3944
logger.warn(error.message)

0 commit comments

Comments
 (0)