Disable SLC log listener
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 8 Mar 2012 17:26:48 +0000 (17:26 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 8 Mar 2012 17:26:48 +0000 (17:26 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5171 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessEditor.java
eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/editors/ProcessLogPage.java
modules/agent/org.argeo.slc.agent/META-INF/spring/agent.xml

index f4cd3f29eb0f8be57823e06d3f816ead5ebfd9d6..2068aa697cccd6d1c6899e9f1a310cb20aab9f1e 100644 (file)
@@ -40,11 +40,11 @@ public class ProcessEditor extends FormEditor implements
        private ProcessController processController;
 
        private ProcessBuilderPage builderPage;
-       private ProcessLogPage logPage;
+       //private ProcessLogPage logPage;
 
        private ExecutionModulesManager modulesManager;
 
-       private Boolean switchToLog = false;
+       //private Boolean switchToLog = false;
 
        @Override
        public void init(IEditorSite site, IEditorInput input)
@@ -112,8 +112,8 @@ public class ProcessEditor extends FormEditor implements
                doSave(null);
                try {
                        // show log
-                       if (switchToLog)
-                               setActivePage(logPage.getId());
+//                     if (switchToLog)
+//                             setActivePage(logPage.getId());
 
                        ExecutionProcess process = processController.process(processNode);
                        Map<String, String> properties = new HashMap<String, String>();
@@ -181,8 +181,8 @@ public class ProcessEditor extends FormEditor implements
                        builderPage = new ProcessBuilderPage(this, processNode);
                        addPage(builderPage);
                        firePropertyChange(PROP_DIRTY);
-                       logPage = new ProcessLogPage(this, processNode);
-                       addPage(logPage);
+//                     logPage = new ProcessLogPage(this, processNode);
+//                     addPage(logPage);
                } catch (PartInitException e) {
                        throw new SlcException("Cannot add pages", e);
                }
index 46e50b6f0face84914935ff89b6d252877482bb2..4283bc5d13f1fe01fe6ab729953f105c8474ce43 100644 (file)
@@ -46,7 +46,7 @@ public class ProcessLogPage extends FormPage {
         * optimization field: we compute once the length of the path to slc:log so
         * that we can easily substring the relative path of logs.
         */
-       private Integer logPathLength;
+       //private Integer logPathLength;
 
        public ProcessLogPage(FormEditor editor, Node processNode) {
                super(editor, ID, "Log");
@@ -57,7 +57,7 @@ public class ProcessLogPage extends FormPage {
 
                try {
                        String logBasePath = processNode.getPath() + '/' + SlcNames.SLC_LOG;
-                       logPathLength = logBasePath.length();
+                       //logPathLength = logBasePath.length();
 
                        Workspace ws = processNode.getSession().getWorkspace();
 
@@ -125,12 +125,12 @@ public class ProcessLogPage extends FormPage {
        protected void appendLogEntry(StringBuffer buf, Node logEntry)
                        throws RepositoryException {
                // +1 in order to remove the first slash
-               String relPath = logEntry.getPath().substring(logPathLength + 1);
+//             String relPath = logEntry.getPath().substring(logPathLength + 1);
                //System.out.println("relPath=" + relPath);
-               int firstSlashIndex = relPath.indexOf('/');
-               int lastSlashIndex = relPath.lastIndexOf('/');
-               String thread = relPath.substring(0, firstSlashIndex);
-               String location = relPath.substring(firstSlashIndex, lastSlashIndex);
+//             int firstSlashIndex = relPath.indexOf('/');
+//             int lastSlashIndex = relPath.lastIndexOf('/');
+//             String thread = relPath.substring(0, firstSlashIndex);
+//             String location = relPath.substring(firstSlashIndex, lastSlashIndex);
 
                // String date = dateFormat.format(logEntry
                // .getProperty(SlcNames.SLC_TIMESTAMP).getDate().getTime());
index 2cb735787c0af484884604762a705135469d1155..38cc1d4e1a06eb9724908690f25b164fd3613ef9 100644 (file)
        <bean id="bundlesManager" class="org.argeo.slc.osgi.BundlesManager" />\r
 \r
        <!-- Logging -->\r
-       <bean id="log4Notification" class="org.argeo.slc.log4j.SlcExecutionAppender"\r
-               init-method="init" destroy-method="destroy">\r
-               <property name="disabled" value="${slc.agent.log4Notification.disabled}" />\r
-               <property name="level" value="${slc.agent.log4Notification.level}" />\r
-               <property name="onlyExecutionThread"\r
-                       value="${slc.agent.log4Notification.onlyExecutionThread}" />\r
-       </bean>\r
+<!--   <bean id="log4Notification" class="org.argeo.slc.log4j.SlcExecutionAppender" -->\r
+<!--           init-method="init" destroy-method="destroy"> -->\r
+<!--           <property name="disabled" value="${slc.agent.log4Notification.disabled}" /> -->\r
+<!--           <property name="level" value="${slc.agent.log4Notification.level}" /> -->\r
+<!--           <property name="onlyExecutionThread" -->\r
+<!--                   value="${slc.agent.log4Notification.onlyExecutionThread}" /> -->\r
+<!--   </bean> -->\r
 \r
 \r
 </beans>
\ No newline at end of file