X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fpymol%2FPymolManager.java;fp=src%2Fjalview%2Fext%2Fpymol%2FPymolManager.java;h=6a014a56c8464a4083a0168d31e083e8dc2c25de;hb=a1984b1c8c273ed33c7ce9283039f4027dcae2de;hp=5f22526ef47594d2d36eb9ca2227b9ef3f9038f1;hpb=c4e814d2930b175c789c2a004801b7b8a1dacd32;p=jalview.git diff --git a/src/jalview/ext/pymol/PymolManager.java b/src/jalview/ext/pymol/PymolManager.java index 5f22526..6a014a5 100644 --- a/src/jalview/ext/pymol/PymolManager.java +++ b/src/jalview/ext/pymol/PymolManager.java @@ -140,7 +140,7 @@ public class PymolManager int rc = conn.getResponseCode(); if (rc != HttpURLConnection.HTTP_OK) { - Cache.log.error( + Cache.error( String.format("Error status from %s: %d", rpcUrl, rc)); return result; } @@ -158,7 +158,7 @@ public class PymolManager } catch (SocketException e) { // thrown when 'quit' command is sent to PyMol - Cache.log.warn(String.format("Request to %s returned %s", rpcUrl, + Cache.warn(String.format("Request to %s returned %s", rpcUrl, e.toString())); } catch (Exception e) { @@ -169,12 +169,12 @@ public class PymolManager { out.close(); } - if (Cache.log.isTraceEnabled()) + if (Cache.isTraceEnabled()) { - Cache.log.trace("Sent: " + command.toString()); + Cache.trace("Sent: " + command.toString()); if (result != null) { - Cache.log.trace("Received: " + result); + Cache.trace("Received: " + result); } } } @@ -251,12 +251,12 @@ public class PymolManager this.pymolXmlRpcPort = getPortNumber(); if (pymolXmlRpcPort > 0) { - Cache.log.info("PyMOL XMLRPC started on port " + pymolXmlRpcPort); + Cache.info("PyMOL XMLRPC started on port " + pymolXmlRpcPort); } else { error += "Failed to read PyMOL XMLRPC port number"; - Cache.log.error(error); + Cache.error(error); pymolProcess.destroy(); pymolProcess = null; } @@ -300,7 +300,7 @@ public class PymolManager } } catch (Exception e) { - Cache.log.error("Failed to get REST port number from " + responses + Cache.error("Failed to get REST port number from " + responses + ": " + e.getMessage()); // logger.error("Failed to get REST port number from " + responses + ": " // + e.getMessage()); @@ -315,10 +315,10 @@ public class PymolManager } if (port == 0) { - Cache.log.error("Failed to start PyMOL with XMLRPC, response was: " + Cache.error("Failed to start PyMOL with XMLRPC, response was: " + responses); } - Cache.log.error("PyMOL started with XMLRPC on port " + port); + Cache.error("PyMOL started with XMLRPC on port " + port); return port; }