make logging opt-in