Skip to content

Commit

Permalink
client: tweak logging
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Oct 14, 2024
1 parent e160e5d commit e7a14df
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ const createClient = (cfg, opt = {}) => {
service,
aboParams,
)
logCtx.bestaetigung = bestaetigung

if (fetchSubscriptionsDataPeriodically) {
ok(Number.isInteger(fetchInterval), 'fetchInterval must be an integer')
Expand Down Expand Up @@ -367,7 +366,10 @@ const createClient = (cfg, opt = {}) => {
})
}

logger.debug(logCtx, 'successfully subscribed to items')
logger.trace({
...logCtx,
bestaetigung,
}, isUpdate ? 'successfully updated subscription' : 'successfully subscribed')

Check failure on line 372 in index.js

View workflow job for this annotation

GitHub Actions / test (20)

'isUpdate' is not defined
return {
aboId,
}
Expand Down Expand Up @@ -595,7 +597,10 @@ const createClient = (cfg, opt = {}) => {
}

if (weitereDaten) {
logger.debug(logCtx, `received DatenAbrufenAntwort with WeitereDaten=true, iterating further (${itLevel + 1})`)
logger.debug({
...logCtx,
bestaetigung: undefined,
}, `received DatenAbrufenAntwort with WeitereDaten=true, iterating further (${itLevel + 1})`)
itControl.continue = true
}
}
Expand Down

0 comments on commit e7a14df

Please sign in to comment.