aboutsummaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2021-09-13 12:14:11 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2021-09-13 12:14:11 +0200
commit2004b786ddc7cc5ba9a5cb8f72dd14bafafe8435 (patch)
treed27ef307bde2c55ef120fe3eed93737f9f9fec8f /plugin.go
parent9f5a9f807766453fbebb1e8a2f1045a040db0635 (diff)
Smarter logging (anon5)
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin.go b/plugin.go
index 8a527c9..a847f64 100644
--- a/plugin.go
+++ b/plugin.go
@@ -17,7 +17,7 @@ func loadPlugins() {
func openPlugins() {
executable, err := os.Executable()
if err != nil {
- log.Fatal("{←|⇶} ", err)
+ log.Fatal(err)
}
path := filepath.Dir(executable) + "/plugins"
@@ -25,16 +25,16 @@ func openPlugins() {
dir, err := os.ReadDir(path)
if err != nil {
- log.Fatal("{←|⇶} ", err)
+ log.Fatal(err)
}
for _, file := range dir {
_, err := plugin.Open(path + "/" + file.Name())
if err != nil {
- log.Print("{←|⇶} ", err)
+ log.Print(err)
continue
}
}
- log.Print("{←|⇶} load plugins")
+ log.Print("load plugins")
}