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

Unify general configuration and logging configuration #56

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

louyuting
Copy link
Collaborator

@louyuting louyuting commented Feb 20, 2020

Describe what this PR does / why we need it

unify configuration

Describe how you did it

The priority is: env > yaml > default
That is say, yaml config will override default config and env config will override yaml config.

There is only one parameter "config path" for sentinel initialization. If user don't indicate config path, sentinel will use default config.

Unifying the constant to core/constant, including configuration、global constant variable.

FIX #42

Describe how to verify it

Special notes for reviews

@louyuting louyuting requested a review from sczyh30 February 20, 2020 15:09
@louyuting louyuting added area/configuration Issue related to configurations of Sentinel to-review PRs to review labels Feb 20, 2020
@louyuting louyuting force-pushed the unify_configuration branch 2 times, most recently from 64106d0 to ec700ed Compare February 24, 2020 15:04
@louyuting louyuting force-pushed the unify_configuration branch from ec700ed to 66b7733 Compare March 4, 2020 16:39
api/init.go Outdated Show resolved Hide resolved
core/constant/constant.go Outdated Show resolved Hide resolved
logging/logging.go Show resolved Hide resolved
@louyuting louyuting force-pushed the unify_configuration branch from 66b7733 to 9ac2882 Compare March 8, 2020 06:15
@louyuting louyuting requested a review from sczyh30 March 8, 2020 06:19
@louyuting louyuting force-pushed the unify_configuration branch from 9ac2882 to 267b7d5 Compare March 8, 2020 06:26
@louyuting louyuting force-pushed the unify_configuration branch from 267b7d5 to 6615673 Compare March 9, 2020 14:16
@sczyh30 sczyh30 added this to the 0.2.0 milestone Mar 10, 2020
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 merged commit 9f5bbc0 into alibaba:master Mar 10, 2020
@sczyh30 sczyh30 removed the to-review PRs to review label Mar 10, 2020
@sczyh30
Copy link
Member

sczyh30 commented Mar 10, 2020

Nice work. Thanks!

@sczyh30 sczyh30 changed the title Unify configuration Unify general configuration and logging configuration Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration Issue related to configurations of Sentinel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unify configuration
2 participants