Skip to content

Commit

Permalink
Fixed Circular error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaquu committed Jun 20, 2024
1 parent f975043 commit 348011e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/utils/ServiceUtils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as util from 'node:util'

import { logger } from '@nrchkb/logger'
import {
Accessory,
Expand Down Expand Up @@ -62,7 +64,7 @@ module.exports = function (node: HAPServiceNodeType) {
this.value
}, reachability is ${
(node.parentNode ?? node).reachable
} with context ${JSON.stringify(
} with context ${util.inspect(
context
)} on connection ${connection?.sessionID}`
)
Expand Down Expand Up @@ -170,7 +172,7 @@ module.exports = function (node: HAPServiceNodeType) {
`onCharacteristicSet with status: ${this.statusCode}, value: ${
this.value
}, reachability is ${(node.parentNode ?? node).reachable}
with context ${JSON.stringify(
with context ${util.inspect(
context
)} on connection ${connection?.sessionID}`
)
Expand Down Expand Up @@ -207,7 +209,7 @@ module.exports = function (node: HAPServiceNodeType) {
`onCharacteristicChange with reason: ${reason}, oldValue: ${oldValue}, newValue: ${newValue}, reachability is ${
(node.parentNode ?? node).reachable
}
with context ${JSON.stringify(
with context ${util.inspect(
context
)} on connection ${originator?.sessionID}`
)
Expand Down

0 comments on commit 348011e

Please sign in to comment.