Replace throw with log in registration