0032192: modify query logging