Skip to content

Commit 7a98255

Browse files
committed
Add version to plugin load log
1 parent e64b186 commit 7a98255

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
@@ -34,7 +34,12 @@ const loadPlugin = async (pluginPath: string, httpServer: HttpServer, args: Args
3434
try {
3535
const plugin: Plugin = require(pluginPath)
3636
plugin.activate(httpServer, args)
37-
logger.debug("Loaded plugin", field("name", path.basename(pluginPath)))
37+
38+
logger.debug(
39+
"Loaded plugin",
40+
field("name", path.basename(pluginPath)),
41+
field("version", require(path.join(pluginPath, "package.json")).version || "n/a"),
42+
)
3843
} catch (error) {
3944
if (error.code !== "MODULE_NOT_FOUND") {
4045
logger.warn(error.message)

0 commit comments

Comments
 (0)