Skip to content

Commit

Permalink
remove error log causing failures (#488)
Browse files Browse the repository at this point in the history
* remove error log
  • Loading branch information
aphralG authored Sep 26, 2023
1 parent d75b51e commit 394a3fe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
10 changes: 0 additions & 10 deletions src/core/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,25 +123,15 @@ func (n *NginxBinaryType) UpdateNginxDetailsFromProcesses(nginxProcesses []*Proc
n.statusUrls = map[string]string{}
n.statusUrlMutex.Unlock()

numberOfMasterProcesses := 0

for _, process := range nginxProcesses {
nginxDetails := n.GetNginxDetailsFromProcess(process)
if process.IsMaster {
numberOfMasterProcesses++
n.nginxDetailsMap[nginxDetails.GetNginxId()] = nginxDetails
} else {
n.nginxWorkersMap[nginxDetails.GetNginxId()] = append(n.nginxWorkersMap[nginxDetails.GetNginxId()], nginxDetails)
}
}

if len(n.nginxDetailsMap) != numberOfMasterProcesses {
log.Errorf(
"Multiple NGINX master processes detected with the same NGINX ID. Number of master processes is %d. Number of unique NGINX IDs is %d.",
numberOfMasterProcesses,
len(n.nginxDetailsMap),
)
}
}

func (n *NginxBinaryType) GetChildProcesses() map[string][]*proto.NginxDetails {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 394a3fe

Please sign in to comment.