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

[ISSUE #1118] 历史配置文件保留天数,可配置 #1161

Merged
merged 2 commits into from
May 11, 2019
Merged

[ISSUE #1118] 历史配置文件保留天数,可配置 #1161

merged 2 commits into from
May 11, 2019

Conversation

rushsky518
Copy link
Contributor

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

历史配置文件保留时间改成可配置

Brief changelog

DumpService 增加 retentionDays 字段,对应配置项为 retention.days

@rushsky518 rushsky518 changed the title 历史配置文件保留天数,可配置 [ISSUE #1118] 历史配置文件保留天数,可配置 Apr 30, 2019
@nkorange nkorange requested review from TsingLiang and hxy1991 May 7, 2019 09:53
@@ -278,6 +278,25 @@ private Boolean isQuickStart() {
return isQuickStart;
}

private int getRetentionDays() {
String val = env.getProperty("retention.days");
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's better to use property in application.properties. And the property name should be with prefix 'nacos.config'.

property with prefix nacos.config
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