add  opt for logging slow query