Fixed Log configuration to debug

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/data-miner-manager-widget@144896 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-03-14 11:48:31 +00:00
parent 826cfbd75e
commit e9bafdc38f
7 changed files with 18 additions and 15 deletions

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.widgets.dataminermanagerwidget.client;
import org.gcube.portlets.widgets.dataminermanagerwidget.client.common.EventBusProvider;
import org.gcube.portlets.widgets.dataminermanagerwidget.client.events.ComputationReadyEvent;
import org.gcube.portlets.widgets.dataminermanagerwidget.client.events.ExternalExecutionEvent;
import org.gcube.portlets.widgets.dataminermanagerwidget.client.events.ExternalExecutionEvent.ExternalExecutionEventHandler;
import org.gcube.portlets.widgets.dataminermanagerwidget.client.events.ExternalExecutionEvent.HasExternalExecutionEventHandler;
@ -67,6 +68,8 @@ public class DataMinerManagerDialog extends Window implements HasExternalExecuti
public void onSubmit(ExternalExecutionRequestEvent event) {
Log.debug("Catch ExternalExecutionRequestEvent: "
+ event);
ExternalExecutionEvent ev = new ExternalExecutionEvent(event.getOp());
fireEvent(ev);
}
});

View File

@ -8,7 +8,7 @@ import com.google.gwt.core.client.Scheduler.ScheduledCommand;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class DataMinerManager implements EntryPoint {
public class DataMinerManagerEntry implements EntryPoint {
/**
* {@inheritDoc}

View File

@ -35,7 +35,7 @@
<entry-point
class='org.gcube.portlets.widgets.dataminermanagerwidget.client.DataMinerManager' />
class='org.gcube.portlets.widgets.dataminermanagerwidget.client.DataMinerManagerEntry' />
<set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"

View File

@ -52,7 +52,7 @@ public class DataMinerManagerServiceImpl extends RemoteServiceServlet implements
@Override
public void init() throws ServletException {
super.init();
logger.info("DataMinerManager started!");
logger.info("DataMinerManagerWidget started!");
}

View File

@ -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();

View File

@ -61,7 +61,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());
@ -74,15 +74,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;
@ -141,9 +141,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;
@ -202,9 +202,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");
DataMinerService dataMinerService=new DataMinerService();
sClient = dataMinerService.getClient(serviceCredentials.getToken());
sClientMap.put(serviceCredentials.getScope(), sClient);
@ -214,10 +214,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");
DataMinerService dataMinerService=new DataMinerService();
sClient = dataMinerService.getClient(serviceCredentials.getToken());
sClientMap.put(serviceCredentials.getScope(), sClient);

View File

@ -35,7 +35,7 @@
<entry-point
class='org.gcube.portlets.widgets.dataminermanagerwidget.client.DataMinerManager' />
class='org.gcube.portlets.widgets.dataminermanagerwidget.client.DataMinerManagerEntry' />
<!-- <set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"