Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 2bdc7a2

Browse files
author
Fatme
authored
Merge pull request #1100 from telerik/fatme/fix-console-log
Fix console.log regression after introducing ios-sim async api
2 parents bec6a25 + 4395867 commit 2bdc7a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

definitions/mobile.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ declare module Mobile {
239239
* @param {string} deviceId The unique identifier of the device.
240240
* @param {Mobile.IiOSLogStreamOptions} options Describes the options which can be passed
241241
*/
242-
startNewMutedLogProcess(deviceId: string, options?: Mobile.IiOSLogStreamOptions): void;
242+
startNewMutedLogProcess(deviceId: string, options?: Mobile.IiOSLogStreamOptions): Promise<void>;
243243
}
244244

245245
/**

mobile/ios/simulator/ios-simulator-log-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export class IOSSimulatorLogProvider extends EventEmitter implements Mobile.IiOS
5353
}
5454
}
5555

56-
public startNewMutedLogProcess(deviceId: string, options?: Mobile.IiOSLogStreamOptions): void {
56+
public async startNewMutedLogProcess(deviceId: string, options?: Mobile.IiOSLogStreamOptions): Promise<void> {
5757
options = options || {};
5858
options.muted = true;
5959
this.simulatorsLoggingEnabled[deviceId] = false;
60-
this.startLogProcess(deviceId, options);
60+
await this.startLogProcess(deviceId, options);
6161
this.simulatorsLoggingEnabled[deviceId] = false;
6262
}
6363

0 commit comments

Comments
 (0)