move some INFO log messages in HH and tcp to DEBUG

patch by jbellis; reviewed by Joaquin Casares for CASSANDRA-2429

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1094818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2011-04-18 23:58:07 +00:00
parent f5b030a657
commit 3f71a98aac
2 changed files with 4 additions and 4 deletions

View File

@ -281,13 +281,13 @@ public class HintedHandOffManager implements HintedHandOffManagerMBean
{
try
{
logger_.info("Checking remote schema before delivering hints");
logger_.debug("Checking remote schema before delivering hints");
int waited = waitForSchemaAgreement(endpoint);
// sleep a random amount to stagger handoff delivery from different replicas.
// (if we had to wait, then gossiper randomness took care of that for us already.)
if (waited == 0) {
int sleep = new Random().nextInt(60000);
logger_.info("Sleeping {}ms to stagger hint delivery", sleep);
logger_.debug("Sleeping {}ms to stagger hint delivery", sleep);
Thread.sleep(sleep);
}
if (!Gossiper.instance.getEndpointStateForEndpoint(endpoint).isAlive())

View File

@ -114,8 +114,8 @@ public class OutboundTcpConnection extends Thread
}
catch (IOException e)
{
logger.info("error writing to " + endpoint);
logger.debug("error was ", e);
if (logger.isDebugEnabled())
logger.debug("error writing to " + endpoint, e);
disconnect();
}
}