fix: remove debug log

This commit is contained in:
scientificworld 2023-07-01 17:53:06 +08:00
parent ccfd1edb8c
commit a74d121d88
No known key found for this signature in database
GPG Key ID: 26E695328487D75E
1 changed files with 8 additions and 3 deletions

View File

@ -13,9 +13,14 @@ import (
)
func getDefaultInputFile() string {
exe, _ := os.Executable()
sym, _ := filepath.EvalSymlinks(exe)
log.Print(sym)
exe, err := os.Executable()
if err != nil {
log.Fatal(err)
}
sym, err := filepath.EvalSymlinks(exe)
if err != nil {
log.Fatal(err)
}
return filepath.Dir(sym) + "/ip.txt"
}