[Admin Tools | log4j2]: AdminToolsCheckDeployController.java: In /health_check/advanced method added admintool.cache.url.
This commit is contained in:
parent
6ee562dcb2
commit
22d010c096
|
@ -5,6 +5,7 @@ import com.mongodb.CommandResult;
|
|||
import com.mongodb.DBObject;
|
||||
import eu.dnetlib.uoaadmintools.configuration.GlobalVars;
|
||||
import eu.dnetlib.uoaadmintools.configuration.mongo.MongoConnection;
|
||||
import eu.dnetlib.uoaadmintools.configuration.properties.BrowserCacheConfig;
|
||||
import eu.dnetlib.uoaadmintools.configuration.properties.ManagersApiConfig;
|
||||
import eu.dnetlib.uoaadmintools.configuration.properties.MongoConfig;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
@ -35,6 +36,9 @@ public class AdminToolsCheckDeployController {
|
|||
@Autowired
|
||||
private ManagersApiConfig managersApiConfig;
|
||||
|
||||
@Autowired
|
||||
private BrowserCacheConfig browserCacheConfig;
|
||||
|
||||
@Autowired
|
||||
private GlobalVars globalVars;
|
||||
|
||||
|
@ -68,6 +72,8 @@ public class AdminToolsCheckDeployController {
|
|||
response.put("admintool.managers.api.id", managersApiConfig.getId());
|
||||
response.put("admintool.managers.api.email", managersApiConfig.getEmail());
|
||||
|
||||
response.put("admintool.cache.url", browserCacheConfig.getUrl());
|
||||
|
||||
if(globalVars.date != null) {
|
||||
response.put("Date of deploy", globalVars.date.toString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue