Skip to content

Commit cdf4941

Browse files
committed
Log socket path on running 'tns debug ios'
1 parent 3f5fb4f commit cdf4941

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/device-sockets/ios/socket-proxy-factory.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import * as helpers from "../../common/helpers";
1111
export class SocketProxyFactory implements ISocketProxyFactory {
1212
constructor(private $logger: ILogger,
1313
private $projectData: IProjectData,
14-
private $projectDataService: IProjectDataService) { }
14+
private $projectDataService: IProjectDataService,
15+
private $options: IOptions) { }
1516

1617
public createSocketProxy(factory: () => net.Socket): IFuture<any> {
1718
return (() => {
@@ -119,6 +120,9 @@ export class SocketProxyFactory implements ISocketProxyFactory {
119120

120121
let socketFileLocation = temp.path({ suffix: ".sock" });
121122
server.listen(socketFileLocation);
123+
if(!this.$options.client) {
124+
this.$logger.info("socket-file-location: " + socketFileLocation);
125+
}
122126

123127
return socketFileLocation;
124128
}

0 commit comments

Comments
 (0)