Skip to content

Commit

Permalink
Merge pull request #358 from camunda/alpha
Browse files Browse the repository at this point in the history
Alpha
  • Loading branch information
jwulf authored Jan 24, 2025
2 parents dbf7885 + fe2abfe commit 9fdeb94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ The SDK uses the [`debug`](https://github.com/debug-js/debug) library. To enable
| `camunda:oauth` | OAuth Token Exchange |
| `camunda:grpc` | Zeebe gRPC channel |
| `camunda:worker` | Zeebe Worker |
| `camunda:worker:verbose`| Zeebe Worker (additional detail) |
| `camunda:zeebeclient` | Zeebe Client |

Here is an example of turning on debugging for the OAuth and Operate components:
Expand Down
4 changes: 3 additions & 1 deletion src/zeebe/lib/ZBWorkerBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import { ZBClientOptions } from './interfaces-published-contract'
import { parseVariablesAndCustomHeadersToJSON } from '.'

const debug = d('camunda:worker')
const verbose = d('camunda:worker:verbose')

debug('Loaded ZBWorkerBase')

const MIN_ACTIVE_JOBS_RATIO_BEFORE_ACTIVATING_JOBS = 0.3
Expand Down Expand Up @@ -475,7 +477,7 @@ You should call only one job action method in the worker handler. This is a bug
workerIsClosing ||
insufficientCapacityAvailable
) {
debug('Worker polling blocked', {
verbose('Worker polling blocked', {
pollAlreadyInProgress,
workerIsClosing,
insufficientCapacityAvailable,
Expand Down

0 comments on commit 9fdeb94

Please sign in to comment.