mirror of
https://github.com/fumiama/terasu.git
synced 2026-06-19 03:10:25 +08:00
feat: add more hint
This commit is contained in:
@@ -17,8 +17,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
_, err := plugin.Open(TRSPluginFile)
|
_, err := plugin.Open(TRSPluginFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warnln("[terasu.plugin] load", TRSPluginFile, "err:", err)
|
logrus.Warnln("[terasu.plugin] load ext", TRSPluginFile, "err:", err)
|
||||||
logrus.Warnln("[terasu.plugin] hint: ensure the main binary and plugin are built with identical flags (e.g. both use -trimpath -ldflags=\"-s -w\"), and avoid using 'go run'")
|
logrus.Warnln("[terasu.plugin] hint: ensure the main binary and plugin are built with identical flags (e.g. both use -trimpath -ldflags=\"-s -w\"), and avoid using 'go run'")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
logrus.Infoln("[terasu.plugin] loaded ext", TRSPluginFile)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user