revert log back to nil flags