enable log iff it