Fixed Log configuration to debug
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-manager@144892 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d4d7da6c67
commit
26ff897e81
|
@ -60,7 +60,7 @@ public class DownloadFolderServlet extends HttpServlet {
|
|||
private void createResponse(HttpServletRequest request,
|
||||
HttpServletResponse response) throws ServletException, IOException {
|
||||
try {
|
||||
logger.info("DownloadFolderServlet");
|
||||
logger.debug("DownloadFolderServlet");
|
||||
|
||||
HttpSession session = request.getSession();
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ public class SessionUtil {
|
|||
String groupName = null;
|
||||
|
||||
if (Constants.DEBUG_MODE) {
|
||||
logger.info("No credential found in session, use test user!");
|
||||
logger.debug("No credential found in session, use test user!");
|
||||
/*
|
||||
* InfoLocale infoLocale = getInfoLocale(httpServletRequest, null);
|
||||
* Locale locale = new Locale(infoLocale.getLanguage());
|
||||
|
@ -76,15 +76,15 @@ public class SessionUtil {
|
|||
scope = Constants.DEFAULT_SCOPE;
|
||||
token = Constants.DEFAULT_TOKEN;
|
||||
|
||||
logger.info("Set SecurityToken: " + token);
|
||||
logger.debug("Set SecurityToken: " + token);
|
||||
SecurityTokenProvider.instance.set(token);
|
||||
logger.info("Set ScopeProvider: " + scope);
|
||||
logger.debug("Set ScopeProvider: " + scope);
|
||||
ScopeProvider.instance.set(scope);
|
||||
|
||||
sCredentials = new ServiceCredentials(userName, scope, token);
|
||||
|
||||
} else {
|
||||
logger.info("Retrieving credential in session!");
|
||||
logger.debug("Retrieving credential in session!");
|
||||
PortalContext pContext = PortalContext.getConfiguration();
|
||||
boolean hasScopeGroupId = false;
|
||||
|
||||
|
@ -143,9 +143,9 @@ public class SessionUtil {
|
|||
String email = gCubeUser.getEmail();
|
||||
|
||||
if (hasScopeGroupId) {
|
||||
logger.info("Set SecurityToken: " + token);
|
||||
logger.debug("Set SecurityToken: " + token);
|
||||
SecurityTokenProvider.instance.set(token);
|
||||
logger.info("Set ScopeProvider: " + scope);
|
||||
logger.debug("Set ScopeProvider: " + scope);
|
||||
ScopeProvider.instance.set(scope);
|
||||
|
||||
groupId = scopeGroupId;
|
||||
|
@ -204,9 +204,9 @@ public class SessionUtil {
|
|||
|
||||
Object obj = session.getAttribute(Constants.SClientMap);
|
||||
if (obj == null) {
|
||||
logger.info("Create new SClientMap");
|
||||
logger.debug("Create new SClientMap");
|
||||
HashMap<String, SClient> sClientMap = new HashMap<>();
|
||||
logger.info("Create new SClient");
|
||||
logger.debug("Create new SClient");
|
||||
SClientBuilder sBuilder = new SClient4WPSBuilder(serviceCredentials);
|
||||
SClientDirector director = new SClientDirector();
|
||||
director.setSClientBuilder(sBuilder);
|
||||
|
@ -220,10 +220,10 @@ public class SessionUtil {
|
|||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, SClient> sClientMap = (HashMap<String, SClient>) obj;
|
||||
if (sClientMap.containsKey(serviceCredentials.getScope())) {
|
||||
logger.info("Use SClient in session");
|
||||
logger.debug("Use SClient in session");
|
||||
sClient = sClientMap.get(serviceCredentials.getScope());
|
||||
} else {
|
||||
logger.info("Create new SClient");
|
||||
logger.debug("Create new SClient");
|
||||
SClientBuilder sBuilder = new SClient4WPSBuilder(
|
||||
serviceCredentials);
|
||||
|
||||
|
|
|
@ -657,7 +657,7 @@ public class SClient4WPS extends SClient {
|
|||
public List<Parameter> getInputParameters(Operator operator)
|
||||
throws Exception {
|
||||
try {
|
||||
logger.info("Parameters of algorithm " + operator.getId());
|
||||
logger.debug("Parameters of algorithm " + operator.getId());
|
||||
|
||||
ProcessInformations processInformations;
|
||||
try {
|
||||
|
|
|
@ -94,9 +94,9 @@ public class SClient4WPSSession implements Serializable {
|
|||
|
||||
public boolean connect(String url) throws WPSClientException {
|
||||
logger.info("CONNECT: " + url);
|
||||
logger.info("LoggedSevices: " + loggedServices.keySet());
|
||||
logger.debug("LoggedSevices: " + loggedServices.keySet());
|
||||
if (loggedServices.containsKey(url)) {
|
||||
logger.info("Service already registered: " + url);
|
||||
logger.debug("Service already registered: " + url);
|
||||
return false;
|
||||
}
|
||||
logger.debug("Service not registered");
|
||||
|
@ -111,7 +111,7 @@ public class SClient4WPSSession implements Serializable {
|
|||
|
||||
ProcessDescriptionsDocument processDescs = describeAllProcesses(url);
|
||||
if (processDescs != null && capsDoc != null) {
|
||||
logger.info("Adding processes descriptions to logged services "
|
||||
logger.debug("Adding processes descriptions to logged services "
|
||||
+ url);
|
||||
processDescriptions.put(url, processDescs);
|
||||
logger.debug("ProcessDescriptions key: "
|
||||
|
@ -137,9 +137,9 @@ public class SClient4WPSSession implements Serializable {
|
|||
* @throws WPSClientException
|
||||
*/
|
||||
public boolean connectForMonitoring(String url) throws WPSClientException {
|
||||
logger.info("CONNECT");
|
||||
logger.debug("CONNECT");
|
||||
if (loggedServices.containsKey(url)) {
|
||||
logger.info("Service already registered: " + url);
|
||||
logger.debug("Service already registered: " + url);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue