using dlog in dthread