Make logging opt-in