fix api empty logthread