trapped queries log