some bug about use logging