-
Notifications
You must be signed in to change notification settings - Fork 93
Add source to logs in Debug Mode & Clean up function names #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -398,6 +400,7 @@ func (oc *Collector) checkForNewReceivers(nginxConfigContext *model.NginxConfigC | |||
nginxReceiverFound, reloadCollector := oc.updateExistingNginxPlusReceiver(nginxConfigContext) | |||
|
|||
if !nginxReceiverFound && nginxConfigContext.PlusAPI.URL != "" { | |||
slog.Debug("Adding new Nginx Plus receiver", "url", nginxConfigContext.PlusAPI.URL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slog.Debug("Adding new Nginx Plus receiver", "url", nginxConfigContext.PlusAPI.URL) | |
slog.Debug("Adding new NGINX Plus receiver", "url", nginxConfigContext.PlusAPI.URL) |
@@ -413,6 +416,7 @@ func (oc *Collector) checkForNewReceivers(nginxConfigContext *model.NginxConfigC | |||
|
|||
reloadCollector = true | |||
} else if nginxConfigContext.PlusAPI.URL == "" { | |||
slog.Debug("Adding new Nginx Oss receiver", "url", nginxConfigContext.StubStatus.URL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slog.Debug("Adding new Nginx Oss receiver", "url", nginxConfigContext.StubStatus.URL) | |
slog.Debug("Adding new NGINX OSS receiver", "url", nginxConfigContext.StubStatus.URL) |
@@ -465,6 +469,8 @@ func (oc *Collector) updateExistingNginxPlusReceiver( | |||
oc.config.Collector.Receivers.NginxPlusReceivers[index+1:]..., | |||
) | |||
if nginxConfigContext.PlusAPI.URL != "" { | |||
slog.Debug("Updating existing Nginx Plus receiver", "url", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slog.Debug("Updating existing Nginx Plus receiver", "url", | |
slog.Debug("Updating existing NGINX Plus receiver", "url", |
@@ -496,6 +502,8 @@ func (oc *Collector) updateExistingNginxOSSReceiver( | |||
oc.config.Collector.Receivers.NginxReceivers[index+1:]..., | |||
) | |||
if nginxConfigContext.StubStatus.URL != "" { | |||
slog.Debug("Updating existing Nginx Oss receiver", "url", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slog.Debug("Updating existing Nginx Oss receiver", "url", | |
slog.Debug("Updating existing NGINX OSS receiver", "url", |
Proposed changes
Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentmake install-tools
and have attached any dependency changes to this pull requestREADME.md
)