ref 11259:Accounting Manager portlet: lower log level of o.g.p.a.a.s.SessionUtil
https://support.d4science.org/issues/11259 Updated log level to debug git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/accounting-manager@165843 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
faceb82a43
commit
413a29e17f
|
@ -56,11 +56,11 @@ public class AccountingClientCallable implements Callable<TaskStatus> {
|
|||
if (Constants.DEBUG_MODE) {
|
||||
accountingCaller = new AccountingCallerTester();
|
||||
} else {
|
||||
logger.info("Set SecurityToken: "
|
||||
logger.debug("Set SecurityToken: "
|
||||
+ taskRequest.getServiceCredentials().getToken());
|
||||
SecurityTokenProvider.instance.set(taskRequest
|
||||
.getServiceCredentials().getToken());
|
||||
logger.info("Set ScopeProvider: "
|
||||
logger.debug("Set ScopeProvider: "
|
||||
+ taskRequest.getServiceCredentials().getScope());
|
||||
ScopeProvider.instance.set(taskRequest.getServiceCredentials()
|
||||
.getScope());
|
||||
|
|
|
@ -101,7 +101,7 @@ public class AccountingClientDaemon implements Runnable {
|
|||
try {
|
||||
result = futureResult.get(timeout,
|
||||
TimeUnit.MILLISECONDS);
|
||||
logger.info("AccountingClientTask: " + result);
|
||||
logger.debug("AccountingClientTask: " + result);
|
||||
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
logger.error(
|
||||
|
|
|
@ -28,7 +28,7 @@ public class AccountingClientListener implements ServletContextListener {
|
|||
|
||||
@Override
|
||||
public void contextInitialized(ServletContextEvent sce) {
|
||||
logger.info("Initializing AccountingCache");
|
||||
logger.debug("Initializing AccountingCache");
|
||||
accountingCache = null;
|
||||
try {
|
||||
accountingCache = new AccountingCache();
|
||||
|
@ -40,31 +40,31 @@ public class AccountingClientListener implements ServletContextListener {
|
|||
|
||||
sce.getServletContext().setAttribute(SessionConstants.ACCOUNTING_CACHE,
|
||||
accountingCache);
|
||||
logger.info("AccountingCache value saved in context.");
|
||||
logger.debug("AccountingCache value saved in context.");
|
||||
|
||||
accountingClientDaemon = new AccountingClientDaemon(sce,
|
||||
accountingCache);
|
||||
thread = new Thread(accountingClientDaemon);
|
||||
logger.info("Starting AccountingClientDaemon: " + thread);
|
||||
logger.debug("Starting AccountingClientDaemon: " + thread);
|
||||
thread.start();
|
||||
logger.info("AccountingClientDaemon process successfully started.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void contextDestroyed(ServletContextEvent sce) {
|
||||
logger.info("Stopping AccountingClientDaemon: " + thread);
|
||||
logger.debug("Stopping AccountingClientDaemon: " + thread);
|
||||
if (thread != null) {
|
||||
accountingClientDaemon.terminate();
|
||||
try {
|
||||
thread.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
logger.info("AccountingClientDaemon successfully stopped.");
|
||||
logger.debug("AccountingClientDaemon successfully stopped.");
|
||||
}
|
||||
logger.info("Clear AccountingCache");
|
||||
logger.debug("Clear AccountingCache");
|
||||
try {
|
||||
accountingCache.finalize();
|
||||
logger.info("AccountingCache finelized");
|
||||
logger.debug("AccountingCache finelized");
|
||||
} catch (Throwable e) {
|
||||
logger.error(
|
||||
"Error in finalize AccountingCache: "
|
||||
|
|
|
@ -65,7 +65,7 @@ public class ExportServlet extends HttpServlet {
|
|||
private void createResponse(HttpServletRequest request,
|
||||
HttpServletResponse response) throws ServletException, IOException {
|
||||
try {
|
||||
logger.info("ExportServlet");
|
||||
logger.debug("ExportServlet");
|
||||
|
||||
HttpSession session = request.getSession();
|
||||
|
||||
|
|
|
@ -53,7 +53,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!");
|
||||
userName = Constants.DEFAULT_USER;
|
||||
scope = Constants.DEFAULT_SCOPE;
|
||||
token = Constants.DEFAULT_TOKEN;
|
||||
|
@ -61,7 +61,7 @@ public class SessionUtil {
|
|||
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;
|
||||
// boolean hasCurrUserId = false;
|
||||
|
|
|
@ -84,7 +84,7 @@ public class AccountingCaller implements AccountingCallerInterface {
|
|||
director.constructAccountingQuery();
|
||||
AccountingQuery query = director.getAccountingQuery();
|
||||
|
||||
logger.info("AccountingQuery: " + query);
|
||||
logger.debug("AccountingQuery: " + query);
|
||||
|
||||
if (query == null || query.getChartType() == null) {
|
||||
throw new ServiceException(
|
||||
|
|
|
@ -55,7 +55,7 @@ public class AccountingCache implements Serializable {
|
|||
// Resolve a cache manager
|
||||
CachingProvider cachingProvider = Caching.getCachingProvider();
|
||||
cacheManager = cachingProvider.getCacheManager();
|
||||
logger.info("AccountingCache URI: " + cacheManager.getURI());
|
||||
logger.debug("AccountingCache URI: " + cacheManager.getURI());
|
||||
|
||||
ResourcePoolsBuilder builderSeries = ResourcePoolsBuilder.newResourcePoolsBuilder().heap(SERIES_HEAP_DIMENSION_MB, MemoryUnit.MB)
|
||||
.offheap(SERIES_OFFHEAP_DIMENSION_MB, MemoryUnit.MB);
|
||||
|
|
|
@ -39,7 +39,7 @@ public class BuildEnableTabs {
|
|||
enableTabsJAXB = InformationSystemUtils
|
||||
.retrieveEnableTab(scope);
|
||||
} catch (ServiceException e) {
|
||||
logger.info(e.getLocalizedMessage());
|
||||
logger.debug(e.getLocalizedMessage(),e);
|
||||
}
|
||||
|
||||
logger.debug("Enable Tabs: " + enableTabsJAXB);
|
||||
|
|
|
@ -21,7 +21,7 @@ public class BuildThreadPoolInfo {
|
|||
ThreadPoolInfo threadPoolInfo=null;
|
||||
|
||||
if (Constants.DEBUG_MODE) {
|
||||
logger.info("AccountingManager use default configuration for threadpool [scope="+scope+"]");
|
||||
logger.debug("AccountingManager use default configuration for threadpool [scope="+scope+"]");
|
||||
threadPoolInfo=new ThreadPoolInfo(Constants.SERVICE_CLIENT_TIMEOUT_DEFAULT_MILLIS);
|
||||
} else {
|
||||
ThreadPoolJAXB threadPoolJAXB=null;
|
||||
|
@ -29,7 +29,7 @@ public class BuildThreadPoolInfo {
|
|||
threadPoolJAXB= InformationSystemUtils
|
||||
.retrieveThreadPoolTimeout(scope);
|
||||
} catch(ServiceException e){
|
||||
logger.info(e.getLocalizedMessage());
|
||||
logger.debug(e.getLocalizedMessage());
|
||||
}
|
||||
|
||||
logger.debug("ThreadPool: " + threadPoolJAXB);
|
||||
|
|
Loading…
Reference in New Issue