change print to log, and move session commit to before the logout
change print to log, and move session commit to before the logout

fedspendingtransparency/data-act-broker-backend,fedspendingtransparency/data-act-broker-backend