Skip to content
Snippets Groups Projects
Commit 3359e0bd authored by Blake Fitch's avatar Blake Fitch
Browse files

fix up error logging

parent 0c361a20
No related branches found
No related tags found
No related merge requests found
......@@ -92,14 +92,15 @@ def get_irods_session( host, port, zone, user, password,
except Exception as e:
# This seems fishy... but we are getting a bunch of zombie irods connects.
logger.error("Exception opening irods session. ex: " + str(e) )
logger.error( e )
try:
if irods_sesh != None :
irods_sesh.cleanup()
logger.error( "Cleaned up non-None irods_sesh after failing a 'get' ... strange." )
except Exception as ex:
logger.error( "Could not clean up non-None irods_sesh. ex: " + str (ex) )
logger.error("Exception opening irods session. ex: " + str(e) )
logger.error( e )
if do_not_block:
logger.info( "Returning fail baesd on do_not_block==False. do_not_block: " + str( do_not_block ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment