Added ability to totally disable the query log.