Skip to content

Commit f72f52a

Browse files
committed
js sdk: Warn for simulator endpoint
1 parent b83c3c2 commit f72f52a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/js/src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,10 @@ export interface TlsKeyOptions {
239239

240240
export class DstackClient {
241241
private endpoint: string
242-
private logger: Console
243242

244243
constructor(endpoint: string = '/var/run/dstack.sock') {
245-
this.logger = console
246244
if (process.env.DSTACK_SIMULATOR_ENDPOINT) {
247-
this.logger.debug(`Using simulator endpoint: ${process.env.DSTACK_SIMULATOR_ENDPOINT}`)
245+
console.warn(`Using simulator endpoint: ${process.env.DSTACK_SIMULATOR_ENDPOINT}`)
248246
endpoint = process.env.DSTACK_SIMULATOR_ENDPOINT
249247
}
250248
this.endpoint = endpoint

0 commit comments

Comments
 (0)