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:
Giancarlo Panichi 2017-03-14 11:33:53 +00:00
parent d4d7da6c67
commit 26ff897e81
4 changed files with 17 additions and 17 deletions

View File

@ -60,7 +60,7 @@ public class DownloadFolderServlet extends HttpServlet {
private void createResponse(HttpServletRequest request, private void createResponse(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException { HttpServletResponse response) throws ServletException, IOException {
try { try {
logger.info("DownloadFolderServlet"); logger.debug("DownloadFolderServlet");
HttpSession session = request.getSession(); HttpSession session = request.getSession();

View File

@ -63,7 +63,7 @@ public class SessionUtil {
String groupName = null; String groupName = null;
if (Constants.DEBUG_MODE) { 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); * InfoLocale infoLocale = getInfoLocale(httpServletRequest, null);
* Locale locale = new Locale(infoLocale.getLanguage()); * Locale locale = new Locale(infoLocale.getLanguage());
@ -76,15 +76,15 @@ public class SessionUtil {
scope = Constants.DEFAULT_SCOPE; scope = Constants.DEFAULT_SCOPE;
token = Constants.DEFAULT_TOKEN; token = Constants.DEFAULT_TOKEN;
logger.info("Set SecurityToken: " + token); logger.debug("Set SecurityToken: " + token);
SecurityTokenProvider.instance.set(token); SecurityTokenProvider.instance.set(token);
logger.info("Set ScopeProvider: " + scope); logger.debug("Set ScopeProvider: " + scope);
ScopeProvider.instance.set(scope); ScopeProvider.instance.set(scope);
sCredentials = new ServiceCredentials(userName, scope, token); sCredentials = new ServiceCredentials(userName, scope, token);
} else { } else {
logger.info("Retrieving credential in session!"); logger.debug("Retrieving credential in session!");
PortalContext pContext = PortalContext.getConfiguration(); PortalContext pContext = PortalContext.getConfiguration();
boolean hasScopeGroupId = false; boolean hasScopeGroupId = false;
@ -143,9 +143,9 @@ public class SessionUtil {
String email = gCubeUser.getEmail(); String email = gCubeUser.getEmail();
if (hasScopeGroupId) { if (hasScopeGroupId) {
logger.info("Set SecurityToken: " + token); logger.debug("Set SecurityToken: " + token);
SecurityTokenProvider.instance.set(token); SecurityTokenProvider.instance.set(token);
logger.info("Set ScopeProvider: " + scope); logger.debug("Set ScopeProvider: " + scope);
ScopeProvider.instance.set(scope); ScopeProvider.instance.set(scope);
groupId = scopeGroupId; groupId = scopeGroupId;
@ -204,9 +204,9 @@ public class SessionUtil {
Object obj = session.getAttribute(Constants.SClientMap); Object obj = session.getAttribute(Constants.SClientMap);
if (obj == null) { if (obj == null) {
logger.info("Create new SClientMap"); logger.debug("Create new SClientMap");
HashMap<String, SClient> sClientMap = new HashMap<>(); HashMap<String, SClient> sClientMap = new HashMap<>();
logger.info("Create new SClient"); logger.debug("Create new SClient");
SClientBuilder sBuilder = new SClient4WPSBuilder(serviceCredentials); SClientBuilder sBuilder = new SClient4WPSBuilder(serviceCredentials);
SClientDirector director = new SClientDirector(); SClientDirector director = new SClientDirector();
director.setSClientBuilder(sBuilder); director.setSClientBuilder(sBuilder);
@ -220,10 +220,10 @@ public class SessionUtil {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
HashMap<String, SClient> sClientMap = (HashMap<String, SClient>) obj; HashMap<String, SClient> sClientMap = (HashMap<String, SClient>) obj;
if (sClientMap.containsKey(serviceCredentials.getScope())) { if (sClientMap.containsKey(serviceCredentials.getScope())) {
logger.info("Use SClient in session"); logger.debug("Use SClient in session");
sClient = sClientMap.get(serviceCredentials.getScope()); sClient = sClientMap.get(serviceCredentials.getScope());
} else { } else {
logger.info("Create new SClient"); logger.debug("Create new SClient");
SClientBuilder sBuilder = new SClient4WPSBuilder( SClientBuilder sBuilder = new SClient4WPSBuilder(
serviceCredentials); serviceCredentials);

View File

@ -657,7 +657,7 @@ public class SClient4WPS extends SClient {
public List<Parameter> getInputParameters(Operator operator) public List<Parameter> getInputParameters(Operator operator)
throws Exception { throws Exception {
try { try {
logger.info("Parameters of algorithm " + operator.getId()); logger.debug("Parameters of algorithm " + operator.getId());
ProcessInformations processInformations; ProcessInformations processInformations;
try { try {

View File

@ -94,9 +94,9 @@ public class SClient4WPSSession implements Serializable {
public boolean connect(String url) throws WPSClientException { public boolean connect(String url) throws WPSClientException {
logger.info("CONNECT: " + url); logger.info("CONNECT: " + url);
logger.info("LoggedSevices: " + loggedServices.keySet()); logger.debug("LoggedSevices: " + loggedServices.keySet());
if (loggedServices.containsKey(url)) { if (loggedServices.containsKey(url)) {
logger.info("Service already registered: " + url); logger.debug("Service already registered: " + url);
return false; return false;
} }
logger.debug("Service not registered"); logger.debug("Service not registered");
@ -111,7 +111,7 @@ public class SClient4WPSSession implements Serializable {
ProcessDescriptionsDocument processDescs = describeAllProcesses(url); ProcessDescriptionsDocument processDescs = describeAllProcesses(url);
if (processDescs != null && capsDoc != null) { if (processDescs != null && capsDoc != null) {
logger.info("Adding processes descriptions to logged services " logger.debug("Adding processes descriptions to logged services "
+ url); + url);
processDescriptions.put(url, processDescs); processDescriptions.put(url, processDescs);
logger.debug("ProcessDescriptions key: " logger.debug("ProcessDescriptions key: "
@ -137,9 +137,9 @@ public class SClient4WPSSession implements Serializable {
* @throws WPSClientException * @throws WPSClientException
*/ */
public boolean connectForMonitoring(String url) throws WPSClientException { public boolean connectForMonitoring(String url) throws WPSClientException {
logger.info("CONNECT"); logger.debug("CONNECT");
if (loggedServices.containsKey(url)) { if (loggedServices.containsKey(url)) {
logger.info("Service already registered: " + url); logger.debug("Service already registered: " + url);
return false; return false;
} }