diff options
author | Himbeer <himbeer@disroot.org> | 2024-11-16 21:33:02 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-11-16 21:33:02 +0100 |
commit | e7d92562fcf05e4f9b7f6ba29b7cda529aab49bc (patch) | |
tree | cb50e2a6a736c8b595d58939c24931cb0456df09 | |
parent | 624ccca4bce6324bee133384d3dfe0487600bf2c (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.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 { |