Log code in session flash for debug