Skip to content

Commit

Permalink
Fix #316 (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
formulahendry authored May 15, 2019
1 parent 046916b commit 6ca274e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-iot-toolkit",
"displayName": "Azure IoT Hub Toolkit",
"description": "Interact with Azure IoT Hub, IoT Device Management, IoT Edge Management, IoT Hub Device Simulation, IoT Hub Code Generation",
"version": "2.7.0-rc2",
"version": "2.7.0-rc3",
"publisher": "vsciot-vscode",
"aiKey": "0caaff90-cc1c-4def-b64c-3ef33615bc9b",
"icon": "logo.png",
Expand Down
6 changes: 2 additions & 4 deletions src/iotHubMessageExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ export class IoTHubMessageExplorer extends IoTHubMessageBaseExplorer {

try {
this._outputChannel.show();
const deviceLabel = deviceItem ? `[${deviceItem.deviceId}]` : "all devices";
const deviceLabel = deviceItem ? `device [${deviceItem.deviceId}]` : "all devices";
this.outputLine(Constants.IoTHubMonitorLabel, `Start monitoring message arrived in built-in endpoint for ${deviceLabel} ...`);
if (!this._eventHubClient) {
this._eventHubClient = await EventHubClient.createFromIotHubConnectionString(iotHubConnectionString);
}
this._eventHubClient = await EventHubClient.createFromIotHubConnectionString(iotHubConnectionString);
TelemetryClient.sendEvent(Constants.IoTHubAIStartMonitorEvent, { deviceType: deviceItem ? deviceItem.contextValue : "" });
await this.startMonitor(Constants.IoTHubMonitorLabel, consumerGroup, deviceItem);
this.updateMonitorStatus(true);
Expand Down

0 comments on commit 6ca274e

Please sign in to comment.