This is fine but then it will also (redundantly) log all queries as well.