Skip to content

Commit 9b12411

Browse files
switched to console.log and console.error exclusively
1 parent 295c223 commit 9b12411

9 files changed

Lines changed: 24 additions & 24 deletions

jsxapi/2-environment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
// Check args
1515
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
16-
console.info("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
17-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
16+
console.log("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
17+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
1818
process.exit(1);
1919
}
2020
// Empty passwords are supported

jsxapi/3-dial.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ const jsxapi = require('jsxapi');
1616

1717
// Check args
1818
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
19-
console.info("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
19+
console.log("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
2121
process.exit(1);
2222
}
2323

2424
// Empty passwords are supported
2525
const password = process.env.JSXAPI_PASSWORD ? process.env.JSXAPI_PASSWORD : "";
2626

2727
// Connect to the device
28-
console.debug("connecting to your device...");
28+
console.log("connecting to your device...");
2929
const xapi = jsxapi.connect(process.env.JSXAPI_DEVICE_URL, {
3030
username: process.env.JSXAPI_USERNAME,
3131
password: password

jsxapi/4-custom-messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
2525
const password = process.env.JSXAPI_PASSWORD ? process.env.JSXAPI_PASSWORD : "";
2626

2727
// Connect to the device
28-
console.debug("connecting to your device...");
28+
console.log("connecting to your device...");
2929
const xapi = jsxapi.connect(process.env.JSXAPI_DEVICE_URL, {
3030
username: process.env.JSXAPI_USERNAME,
3131
password: password

jsxapi/5-rolling-messages.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const jsxapi = require('jsxapi');
1616

1717
// Check args
1818
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
19-
console.info("Please specify info to connect to your device as JSXAPI_DEVICE_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
19+
console.log("Please specify info to connect to your device as JSXAPI_DEVICE_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
2121
process.exit(1);
2222
}
2323

@@ -44,7 +44,7 @@ function update(value) {
4444
// Update Awake message
4545
xapi.config.set('UserInterface CustomMessage', value)
4646
.then(() => {
47-
console.info('updated Awake message')
47+
console.log('updated Awake message')
4848
})
4949
.catch((err) => {
5050
console.error(`could not update Awake message : ${err.message}`)

jsxapi/6-branding-logo.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ const jsxapi = require('jsxapi');
1515

1616
// Check args
1717
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
18-
console.info("Please specify info to connect to your device as JSXAPI_DEVICE_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
19-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
18+
console.log("Please specify info to connect to your device as JSXAPI_DEVICE_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
19+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
2020
process.exit(1);
2121
}
2222

2323
// Empty passwords are supported
2424
const password = process.env.JSXAPI_PASSWORD ? process.env.JSXAPI_PASSWORD : "";
2525

2626
// Connect to the device
27-
console.debug("connecting to your device...");
27+
console.log("connecting to your device...");
2828
const xapi = jsxapi.connect(process.env.JSXAPI_DEVICE_URL, {
2929
username: process.env.JSXAPI_USERNAME,
3030
password: password
@@ -58,7 +58,7 @@ xapi.on('ready', () => {
5858
body: encoded
5959
})
6060
.then(() => {
61-
console.info('updated Branding logo in Halfwake mode');
61+
console.log('updated Branding logo in Halfwake mode');
6262

6363
// Switch to Halwake mode
6464
xapi.command('Standby Halfwake')

jsxapi/7-feedback-peoplecount.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ const jsxapi = require('jsxapi');
1818

1919
// Check args
2020
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
21-
console.info("Please specify info to connect to your device as JSXAPI_DEVICE_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
22-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
21+
console.log("Please specify info to connect to your device as JSXAPI_DEVICE_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
22+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
2323
process.exit(1);
2424
}
2525

2626
// Empty passwords are supported
2727
const password = process.env.JSXAPI_PASSWORD ? process.env.JSXAPI_PASSWORD : "";
2828

2929
// Connect to the device
30-
console.debug("connecting to your device...");
30+
console.log("connecting to your device...");
3131
const xapi = jsxapi.connect(process.env.JSXAPI_DEVICE_URL, {
3232
username: process.env.JSXAPI_USERNAME,
3333
password: password

jsxapi/8-listen-audio-volume.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ const jsxapi = require('jsxapi');
1616

1717
// Check args
1818
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
19-
console.info("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
19+
console.log("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
2121
process.exit(1);
2222
}
2323

2424
// Empty passwords are supported
2525
const password = process.env.JSXAPI_PASSWORD ? process.env.JSXAPI_PASSWORD : "";
2626

2727
// Connect to the device
28-
console.debug("connecting to your device...");
28+
console.log("connecting to your device...");
2929
const xapi = jsxapi.connect(process.env.JSXAPI_DEVICE_URL, {
3030
username: process.env.JSXAPI_USERNAME,
3131
password: password

jsxapi/9-listen-all-status.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ const jsxapi = require('jsxapi');
1616

1717
// Check args
1818
if (!process.env.JSXAPI_DEVICE_URL || !process.env.JSXAPI_USERNAME) {
19-
console.info("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20-
console.info("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
19+
console.log("Please specify info to connect to your device as JSXAPI_URL, JSXAPI_USERNAME, JSXAPI_PASSWORD env variables");
20+
console.log("Bash example: JSXAPI_DEVICE_URL='ssh://192.168.1.34' JSXAPI_USERNAME='integrator' JSXAPI_PASSWORD='integrator' node example.js");
2121
process.exit(1);
2222
}
2323

2424
// Empty passwords are supported
2525
const password = process.env.JSXAPI_PASSWORD ? process.env.JSXAPI_PASSWORD : "";
2626

2727
// Connect to the device
28-
console.debug("connecting to your device...");
28+
console.log("connecting to your device...");
2929
const xapi = jsxapi.connect(process.env.JSXAPI_DEVICE_URL, {
3030
username: process.env.JSXAPI_USERNAME,
3131
password: password

jsxapi/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "tutorial",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Example Scripts using the Node.js jsxapi for Cisco Collaboration Devices",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"
77
},
88
"author": "Stève Sfartz <stsfartz@cisco.com>",
99
"license": "MIT",
1010
"dependencies": {
11-
"jsxapi": "^4.0.1"
11+
"jsxapi": "^4.1.2"
1212
}
1313
}

0 commit comments

Comments
 (0)