aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-11-16 21:33:02 +0100
committerHimbeer <himbeer@disroot.org>2024-11-16 21:33:02 +0100
commite7d92562fcf05e4f9b7f6ba29b7cda529aab49bc (patch)
treecb50e2a6a736c8b595d58939c24931cb0456df09
parent624ccca4bce6324bee133384d3dfe0487600bf2c (diff)
Log loaded plugins individually
The log messages say whether each successfully loaded plugin is pre-built or automatically built by the proxy. In the former case the file name is printed, in the latter case the directory name is printed (not the path to the .so file contained within which is what is actually loaded). Closes #154.
-rw-r--r--plugin.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index aeb9b8d..d0ec0a6 100644
--- a/plugin.go
+++ b/plugin.go
@@ -103,16 +103,18 @@ func openPlugins() {
log.Print(err)
continue
}
+
+ log.Println("load auto plugin", pl.Name())
} else if !pl.IsDir() {
_, err := plugin.Open(path + "/" + pl.Name())
if err != nil {
log.Print(err)
continue
}
+
+ log.Println("load comp plugin", pl.Name())
}
}
-
- log.Print("load plugins")
}
func goCmd(args ...string) error {