Enable logs only on debug.