Skip to content

getLogFileName will fail in windows #1

@philiso

Description

@philiso

in function getLogFileName{}
code line proc := path.Base(os.Args[0]) will not work in windows
for path.Base(...) only check last '/' in the path string. but in windows file path is seperated by '\' almost
the better way is to use filepath.Base(...) instead of path.Base(...)

// proc := path.Base(os.Args[0])
proc := filepath.Base(os.Args[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions