Fix recursive console logging