Skip to content
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

feat: print additional debug info if debug set to true in get middleware #35

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

Jafferwaffer
Copy link
Contributor

Issue: https://brandwatch.atlassian.net/browse/AS-454

Final change of the v3 changes.
Have tested on the following clusters

  • stage-apps-euw1
  • eks-staging (falcon)
  • stage-analytics

Added a way to print out ips that dont match the range JIC someone needs to debug.

src/index.js Outdated
@@ -35,16 +35,18 @@ const addCheck = (check) => healthChecks.push(check);
const addReadinessCheck = (check) => readinessChecks.push(check);
const addMetrics = (m) => { metrics = m; };

const getMiddleware = () => (req, res, next) => {
const getMiddleware = (debug = false) => (req, res, next) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤮

@Jafferwaffer Jafferwaffer merged commit 7be5407 into master Aug 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants