Update DumpService.java

property with prefix nacos.config
This commit is contained in:
rushsky518 2019-05-10 17:31:55 +08:00 committed by GitHub
parent 71d9cb3e04
commit f1fd3bbb64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ public class DumpService {
}
private int getRetentionDays() {
String val = env.getProperty("retention.days");
String val = env.getProperty("nacos.config.retention.days");
if (null == val) {
return retentionDays;
}
@ -291,7 +291,7 @@ public class DumpService {
retentionDays = tmp;
}
} catch (NumberFormatException nfe) {
fatalLog.error("read retention.days wrong", nfe);
fatalLog.error("read nacos.config.retention.days wrong", nfe);
}
return retentionDays;