Skip to content

Commit 08224c2

Browse files
fix review comments
1 parent 5d9995a commit 08224c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/commander/pingTest.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function makeHttpRequest(url: string, timeout: number): Promise<{ status: number
3737
});
3838

3939
req.on('error', (error) => {
40-
console.log(error)
40+
console.error(error)
4141
reject(error);
4242
});
4343

@@ -66,8 +66,6 @@ command
6666
// Send GET request to the /ping endpoint
6767
const response = await makeHttpRequest(`${serverAddress}/ping`, 15000);
6868

69-
console.log("hello : "+ response)
70-
7169
// Log the response from the server
7270
if (response.status === 200) {
7371
console.log(chalk.green('SmartUI Server is running'));

0 commit comments

Comments
 (0)