mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
chore: remove unused logger import and debug statement in process_info.go
This commit is contained in:
parent
824aecba77
commit
785d1003d7
1 changed files with 0 additions and 2 deletions
|
@ -8,7 +8,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/v4/process"
|
"github.com/shirou/gopsutil/v4/process"
|
||||||
"github.com/uozi-tech/cosy/logger"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type NginxProcessInfo struct {
|
type NginxProcessInfo struct {
|
||||||
|
@ -121,7 +120,6 @@ func GetNginxProcessInfo() (*NginxProcessInfo, error) {
|
||||||
|
|
||||||
// Distinguish between worker processes, cache processes, and other processes
|
// Distinguish between worker processes, cache processes, and other processes
|
||||||
if ppid == masterPID || strings.Contains(cmdline, "worker process") {
|
if ppid == masterPID || strings.Contains(cmdline, "worker process") {
|
||||||
logger.Debug(cmdline)
|
|
||||||
workerCount++
|
workerCount++
|
||||||
} else if strings.Contains(cmdline, "cache") {
|
} else if strings.Contains(cmdline, "cache") {
|
||||||
cacheCount++
|
cacheCount++
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue