Skip to content

Commit

Permalink
chore: Adjust the error log for the search process
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Oct 10, 2024
1 parent 08dcef8 commit 22addc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
// normal check for process
uid, path, err := P.FindProcessName(metadata.NetWork.String(), metadata.SrcIP, int(metadata.SrcPort))
if err != nil {
log.Debugln("[Process] find process %s error: %v", metadata.String(), err)
log.Debugln("[Process] Find process error for %s: %v", metadata.String(), err)
} else {
metadata.Process = filepath.Base(path)
metadata.ProcessPath = path
Expand All @@ -639,7 +639,7 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
// check package names
pkg, err := P.FindPackageName(metadata)
if err != nil {
log.Debugln("[Process] find process %s error: %v", metadata.String(), err)
log.Debugln("[Process] Find process error for %s: %v", metadata.String(), err)
} else {
metadata.Process = pkg
}
Expand Down

0 comments on commit 22addc6

Please sign in to comment.