Don't generate compaction statistics if logging isn't enabled
patch by dbrosius reviewed by jbellis for cassandra-5262
Merge branch 'cassandra-1.1' into cassandra-1.2
Merge branch 'cassandra-1.2' into trunk