Fix log preparation before provisioning in much bettter way