Log stack trace when writing to Cassandra