Skip to content

Logs filenames paths are not truncated #1370

Description

@anjmao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions