Skip to content

Commit 29d9ea1

Browse files
author
invoker
committed
add log
1 parent 0aaf087 commit 29d9ea1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ func main() {
7474
// Default paths
7575
defaultLocalPath := filepath.Join(appDir, "SensitiveList.json") // ./SensitiveList.json
7676
defaultGlobalPath := "/usr/local/bin/SensitiveList.json" // /usr/local/bin/SensitiveList.json
77-
77+
fmt.Printf("Checking for SensitiveList.json in %s\n and %s\n", appDir, defaultGlobalPath)
7878
// Check if the file exists in the application's directory
7979
configfilepath := defaultLocalPath
8080
if _, err := os.Stat(configfilepath); os.IsNotExist(err) {
8181
// If not found in the app directory, fall back to /usr/local/bin
82+
fmt.Printf("SensitiveList.json not found in %s, trying %s\n", appDir, defaultGlobalPath)
8283
configfilepath = defaultGlobalPath
8384
}
8485

0 commit comments

Comments
 (0)