diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py index 33a41dc8511..3313971e79e 100644 --- a/homeassistant/components/websocket_api/commands.py +++ b/homeassistant/components/websocket_api/commands.py @@ -151,9 +151,11 @@ async def handle_call_service(hass, connection, msg): connection.send_message(messages.error_message( msg['id'], const.ERR_NOT_FOUND, 'Service not found.')) except HomeAssistantError as err: + connection.logger.exception(err) connection.send_message(messages.error_message( msg['id'], const.ERR_HOME_ASSISTANT_ERROR, '{}'.format(err))) except Exception as err: # pylint: disable=broad-except + connection.logger.exception(err) connection.send_message(messages.error_message( msg['id'], const.ERR_UNKNOWN_ERROR, '{}'.format(err)))