Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aldeed
Copy link
Contributor

@aldeed aldeed commented Jan 6, 2020

Resolves #5464
Impact: minor
Type: refactor

Issue

Logging and stack traces are confusing when all functions of a particular type have the same name, as has been the pattern. For example, all plugins that register a "startup" function also name that function "startup".

Solution

#5464 suggested making unique names mandatory but I'm only logging a warning on startup. I've updated all built-in services and plugins so that all function names are unique and the warning does not print on startup.

Breaking changes

None

Testing

Verify no warnings about functionsByType name are shown in the API startup logs. Temporarily change one fn name to be the same as another of that type, and verify that the warning now shows in the logs.

@aldeed aldeed assigned willopez and unassigned willopez Jan 6, 2020
@aldeed aldeed requested a review from willopez January 7, 2020 17:25
Signed-off-by: Eric Dobbertin <[email protected]>
Copy link
Member

@willopez willopez left a comment

Choose a reason for hiding this comment

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

LGTM

@willopez willopez merged commit 9f7f18b into release-3.0.0 Jan 7, 2020
@willopez willopez deleted the refactor-aldeed-unique-fn-names branch January 7, 2020 18:16
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.

3 participants