Add debug log in raise

Add debug log in raise