Skip to content

Commit 08a0f8e

Browse files
committed
refactor: single line log statements
1 parent 419dc35 commit 08a0f8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function _registerAvailableEntities(device) {
242242
* @param {GcDevice} device
243243
*/
244244
function onDeviceAdded(device) {
245-
log.debug("New device added:", device);
245+
log.debug("New device added:", JSON.stringify(device));
246246
_addConfiguredDevice(device, false);
247247
}
248248

src/setup_flow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async function handleDiscovery(msg) {
276276
* @return {Promise<uc.SetupAction>} the setup action on how to continue
277277
*/
278278
async function handleUserDataResponse(msg) {
279-
log.debug("Received user input for driver setup.", msg);
279+
log.debug("Received user input for driver setup.", JSON.stringify(msg));
280280

281281
for (const uuid in msg.inputValues) {
282282
// selected by user?
@@ -287,7 +287,7 @@ async function handleUserDataResponse(msg) {
287287
}
288288
try {
289289
const deviceInfo = await retrieveDeviceInfo(device.get("address"));
290-
log.info("Device information %s:", uuid, deviceInfo);
290+
log.info("Device information %s:", uuid, JSON.stringify(deviceInfo));
291291
/*
292292
Device information GC100_000C1E01A875_GlobalCache: DeviceInfo {
293293
host: '172.16.16.184',

0 commit comments

Comments
 (0)