KB Article #179683

Cassandra client debugging

Problem

You would like to know how to turn on debugging within the API Gateway Cassandra client.

Resolution

Add the following lines to: /apigateway/system/lib/log4j.properties Once you restart the gateway instance, the output will appear in the /apigateway/groups/<group>/<instance>/trace/<trace_file>.trc files


# Cassandra DataStax debug
log4j.logger.com.datastax.driv
er.core.Cluster = DEBUG
log4j.logger.com.datastax.driv
er.core.Session = DEBUG
log4j.logger.com.datastax.driv
er.core.RequestHandler = DEBUG
log4j.logger.com.datastax.driv
er.core.Connection = DEBUG


Note that this creates a lot of log entries and is therefore not recommended in high traffic environments.