[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Tue May 4 16:13:21 UTC 2010


gordonp
Tue May  4 12:13:21 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory dev.open-bio.org:/tmp/cvs-serv5426/src/main/org/biomoby/client

Modified Files:
	MobyRequest.java 
Log Message:
Use proper logging
moby-live/Java/src/main/org/biomoby/client MobyRequest.java,1.47,1.48
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java	2010/04/16 17:29:21	1.47
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java	2010/05/04 16:13:21	1.48
@@ -6,6 +6,7 @@
 import java.net.PasswordAuthentication; // for HttpURLConnection username/password
 import java.net.URL;
 import java.util.*;
+import java.util.logging.*;
 
 import javax.xml.namespace.QName;
 import javax.xml.parsers.DocumentBuilder;
@@ -77,6 +78,8 @@
     // or is executing services as a client asynchronously
     private Vector<MobyRequestEventHandler> eventHandlers; 
 
+    private static Logger logger = Logger.getLogger(MobyRequest.class.getName());
+
     /**
      * Default constructor.  You should have a Central instance around since you're going to 
      * be retrieving MobyServices to pass into here. Lets reuse it.
@@ -995,10 +998,7 @@
 	    throw new MobyException("Could not create MOBY payload XML from input data: " +e);
 	}
 
-	if(debug){
-	    debugPS.println("Input to MOBY Service is:");
-	    debugPS.print(mobyRequest.toString());
-	}
+	logger.log(Level.FINE, "Input to MOBY Service is:\n"+mobyRequest.toString());
 	
 	return mobyRequest.toString();
     }




More information about the MOBY-guts mailing list