fixed color of ttl
log all errors in debug mode
fixed bad placement of log.isDebugEnabled()