Skip to content

Commit

Permalink
Merge pull request #732 from hglkrijger/master
Browse files Browse the repository at this point in the history
add traceback to logging when there is a host plugin exception
  • Loading branch information
brendandixon committed May 25, 2017
2 parents 87b9cc3 + eec198c commit 93fa072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurelinuxagent/common/protocol/hostplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import base64
import json
import traceback

from azurelinuxagent.common import logger
from azurelinuxagent.common.exception import ProtocolError, HttpError
Expand Down Expand Up @@ -177,8 +178,7 @@ def put_vm_status(self, status_blob, sas_url, config_blob_type=None):
logger.info("HostGAPlugin: Setting host plugin as default channel")
HostPluginProtocol.set_default_channel(True)
except Exception as e:
message = "HostGAPlugin: Exception Put VM status: {0}".format(e)
logger.error(message)
message = "HostGAPlugin: Exception Put VM status: {0}, {1}".format(e, traceback.format_exc())
from azurelinuxagent.common.event import WALAEventOperation, report_event
report_event(op=WALAEventOperation.ReportStatus,
is_success=False,
Expand Down

0 comments on commit 93fa072

Please sign in to comment.