Skip to content

Commit

Permalink
add log for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
skiffer-git committed Apr 28, 2024
1 parent b974626 commit d383d02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mageutil/sys.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ func BatchKillExistBinaries(binaryPaths []string) {
lowerBinaryPath := strings.ToLower(binaryPath)
for exePath, procs := range exePathMap {
if strings.Contains(exePath, lowerBinaryPath) {
fmt.Println("lowerBinaryPath ", lowerBinaryPath, "exePath ", exePath)
for _, p := range procs {
fmt.Println("lowerBinaryPath ", lowerBinaryPath, "exePath ", exePath, " pid ", p.Pid)

cmdline, err := p.Cmdline()
if err != nil {
fmt.Printf("Failed to get command line for process %d: %v\n", p.Pid, err)
Expand Down

0 comments on commit d383d02

Please sign in to comment.