fix logging and optimize xwql in MenuService