Fixed save of syslog parser
authorzev <zev@radensolutions.com>
Thu, 25 Aug 2016 09:38:33 +0000 (12:38 +0300)
committerzev <zev@radensolutions.com>
Thu, 25 Aug 2016 09:38:33 +0000 (12:38 +0300)
src/java/netxms-eclipse/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/widgets/LogParserEditor.java
webui/webapp/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/widgets/LogParserEditor.java

index 232dbe0..6a30de5 100644 (file)
@@ -437,7 +437,8 @@ public class LogParserEditor extends Composite
         */
        private String buildParserXml()
        {
-          parser.setFile(labelFileName.getText());
+          if(!isSyslogParser)
+             parser.setFile(labelFileName.getText());
           parser.setProcessALL(checkProcessAll.getSelection());
           parser.setTrace(spinerTrace.getSelection());
           
index 1bff145..d0a8011 100644 (file)
@@ -448,7 +448,8 @@ public class LogParserEditor extends Composite
         */
        private String buildParserXml()
        {
-          parser.setFile(labelFileName.getText());
+          if(!isSyslogParser)
+             parser.setFile(labelFileName.getText());
           parser.setProcessALL(checkProcessAll.getSelection());
           parser.setTrace(spinerTrace.getSelection());