holmes icon indicating copy to clipboard operation
holmes copied to clipboard

getLogFileName will fail in windows

Open philiso opened this issue 6 years ago • 1 comments

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])

philiso avatar Mar 14 '18 11:03 philiso

@philiso thank you very much, plesase give me some time to handle this : )

leesper avatar Mar 15 '18 00:03 leesper