Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Remove a print of customers in edge-auth #685

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

Waterdrips
Copy link
Contributor

Description

This removes a printing of the customers in edge-auth.

Signed-off-by: Alistair Hey [email protected]

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

reduced log noise

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • read the CONTRIBUTION guide
  • signed-off my commits with git commit -s
  • added unit tests

@@ -30,7 +30,10 @@ func MakeQueryHandler(config *Config, protected []string, restrictedPrefix []str
customersURL := os.Getenv("customers_url")

customers := sdk.NewCustomers(customersPath, customersURL)
customers.Fetch()
if err := customers.Fetch(); err != nil {
log.Fatalf("Unable to fetch customers from configured source")
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if this should be fatal. What if it timed out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

then the next time they try it might not? changed the log line and written a 500 internal server error instead.

This removes a printing of the customers in edge-auth.

Signed-off-by: Alistair Hey <[email protected]>
@Waterdrips Waterdrips force-pushed the waterdrips-remove-logline branch from d1f696a to 59cc912 Compare November 9, 2020 16:33
Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

Approved

@alexellis alexellis merged commit ca93a96 into openfaas:master Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants