If I run node binary from custom place (not node directory) I see that filepath is included in the log.
2019-10-29T13:39:29.465 INF my-user/go/src/github.com/mysteriumnetwork/node/ui/server.go:122 > Server stopped
In here file path prefix is removed, but it only works if I run node from node directory. In real case user could run node binary from any place.
Simple solution would be to not use os.Getwd() and instead take file name part which goes after github.com/mysteriumnetwork/node string.
If I run node binary from custom place (not node directory) I see that filepath is included in the log.
In here file path prefix is removed, but it only works if I run node from node directory. In real case user could run node binary from any place.
Simple solution would be to not use
os.Getwd()and instead take file name part which goes aftergithub.com/mysteriumnetwork/nodestring.