JAL-3949 Complete new abstracted logging framework in jalview.log. Updated log calls...
[jalview.git] / src / jalview / ws / jws1 / JPredThread.java
index 23d9eb0..9d8c11c 100644 (file)
@@ -119,17 +119,17 @@ class JPredThread extends JWS1Thread implements WSClientI
 
       JpredResult result = (JpredResult) this.result;
 
-      Cache.log.debug("Parsing output from JNet job.");
+      Cache.debug("Parsing output from JNet job.");
       // JPredFile prediction = new JPredFile("C:/JalviewX/files/jpred.txt",
       // "File");
       JPredFile prediction = new JPredFile(result.getPredfile(),
               DataSourceType.PASTE);
       SequenceI[] preds = prediction.getSeqsAsArray();
-      Cache.log.debug("Got prediction profile.");
+      Cache.debug("Got prediction profile.");
 
       if ((this.msa != null) && (result.getAligfile() != null))
       {
-        Cache.log.debug("Getting associated alignment.");
+        Cache.debug("Getting associated alignment.");
         // we ignore the returned alignment if we only predicted on a single
         // sequence
         FileFormatI format = new IdentifyFile()
@@ -461,7 +461,7 @@ class JPredThread extends JWS1Thread implements WSClientI
         {
           job.setSubmitted(true);
           job.setSubjobComplete(false);
-          Cache.log.info(WsUrl + " Job Id '" + job.getJobId() + "'");
+          Cache.info(WsUrl + " Job Id '" + job.getJobId() + "'");
         }
       }
       else
@@ -484,7 +484,7 @@ class JPredThread extends JWS1Thread implements WSClientI
                 "JPredWS Client: Failed to submit the prediction. Quite possibly because of a server error - see below)\n"
                         + e.getMessage() + "\n");
 
-        jalview.bin.Cache.log.warn("Server Exception", e);
+        Cache.warn("Server Exception", e);
       }
       else
       {
@@ -495,8 +495,7 @@ class JPredThread extends JWS1Thread implements WSClientI
                         "info.failed_to_submit_prediction", new String[]
                         { e.getMessage(), wsInfo.getProgressText() }));
 
-        jalview.bin.Cache.log
-                .debug("Failed Submission of job " + j.getJobnum(), e);
+        Cache.debug("Failed Submission of job " + j.getJobnum(), e);
 
       }
       j.setAllowedServerExceptions(-1);
@@ -523,7 +522,7 @@ class JPredThread extends JWS1Thread implements WSClientI
     } catch (Exception ex)
     {
 
-      Cache.log.error(
+      Cache.error(
               "Unexpected exception when processing results for " + altitle,
               ex);
       wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
@@ -577,9 +576,9 @@ class JPredThread extends JWS1Thread implements WSClientI
           msa = (j.msa != null) ? true : msa;
           try
           {
-            jalview.bin.Cache.log.debug("Parsing output of job " + jn);
+            Cache.debug("Parsing output of job " + jn);
             jobres = j.getResultSet();
-            jalview.bin.Cache.log.debug("Finished parsing output.");
+            Cache.debug("Finished parsing output.");
             if (jobs.length == 1)
             {
               res = jobres;
@@ -592,8 +591,7 @@ class JPredThread extends JWS1Thread implements WSClientI
             }
           } catch (Exception e)
           {
-            jalview.bin.Cache.log
-                    .error("JNet Client: JPred Annotation Parse Error", e);
+            Cache.error("JNet Client: JPred Annotation Parse Error", e);
             wsInfo.setStatus(j.getJobnum(),
                     WebserviceInfo.STATE_STOPPED_ERROR);
             wsInfo.appendProgressText(j.getJobnum(),
@@ -652,7 +650,7 @@ class JPredThread extends JWS1Thread implements WSClientI
         }
         else
         {
-          Cache.log.info("Append results onto existing alignment.");
+          Cache.info("Append results onto existing alignment.");
         }
       }
     }