Query added debug log