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;
}
} 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)
{
{
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);
}
}
}
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;
}
}
} 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());
}
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;
}