diff options
Diffstat (limited to 'azurelinuxagent/agent.py')
-rw-r--r-- | azurelinuxagent/agent.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/azurelinuxagent/agent.py b/azurelinuxagent/agent.py index 2c21e47..bd6dd20 100644 --- a/azurelinuxagent/agent.py +++ b/azurelinuxagent/agent.py @@ -25,6 +25,8 @@ import os import sys import re import subprocess +import traceback + import azurelinuxagent.common.logger as logger import azurelinuxagent.common.event as event import azurelinuxagent.common.conf as conf @@ -133,8 +135,10 @@ def main(args=[]): agent.daemon() elif command == "run-exthandlers": agent.run_exthandlers() - except Exception as e: - logger.error(u"Failed to run '{0}': {1}", command, e) + except Exception: + logger.error(u"Failed to run '{0}': {1}", + command, + traceback.format_exc()) def parse_args(sys_args): """ |