From ee35d65dedba0df383780c9e7d3806d910711192 Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Thu, 20 Feb 2020 12:42:14 +1100 Subject: [PATCH] more debug --- TES/tes/apiendpoints.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TES/tes/apiendpoints.py b/TES/tes/apiendpoints.py index ce4e648..7d0ccb6 100644 --- a/TES/tes/apiendpoints.py +++ b/TES/tes/apiendpoints.py @@ -64,7 +64,10 @@ class SSHAgent(Resource): sshsess.add_keycert(key=data['key'],cert=data['cert']) sshsess.refresh() return "OK" - except: + except Exception e: + import traceback + logger.error(e) + logger.error(traceback.format_exc()) logger.error('failed to add ssh key to the agent') flask_restful.abort(500,message="failed to add the ssh key to the agent") -- GitLab