chore: remove unused logger import and debug statement in process_info.go

This commit is contained in:
Akino 2025-04-10 13:58:29 +00:00
parent 824aecba77
commit 785d1003d7
No known key found for this signature in database
GPG key ID: FB2F74D193A40907

View file

@ -8,7 +8,6 @@ import (
"time"
"github.com/shirou/gopsutil/v4/process"
"github.com/uozi-tech/cosy/logger"
)
type NginxProcessInfo struct {
@ -121,7 +120,6 @@ func GetNginxProcessInfo() (*NginxProcessInfo, error) {
// Distinguish between worker processes, cache processes, and other processes
if ppid == masterPID || strings.Contains(cmdline, "worker process") {
logger.Debug(cmdline)
workerCount++
} else if strings.Contains(cmdline, "cache") {
cacheCount++