Tools to help debug interceptor chain execution.
Tools to help debug interceptor chain execution.
(debug-observer)(debug-observer options)Returns an observer function that logs, at debug level, the interceptor name, stage, execution id, and a description of context changes.
The context changes are in the form of a map. The :added key is a map of key path to added values. The :removed key is a map of key path to removed values. The :changed key is a map of key path to a value change, a map of :from and :to.
Options map:
| Key | Type | Description | 
|---|---|---|
| :omit | set or function | Identifies key paths, as vectors, to omit in the description. | 
| :changes-only? | boolean | If true, then log only when the context changes. | 
| :tap? | boolean | If true, the data is sent to tap>rather than logged. | 
The :omit option is used to prevent certain key paths from appearing in the result delta; the value
for these is replaced with ....  It is typically a set, but can also be a function that accepts
a key path vector.  It is commonly used to omit large, insecure values such as [:response :body].
Returns an observer function that logs, at debug level, the interceptor name, stage, execution id, and a description of context changes. The context changes are in the form of a map. The :added key is a map of key path to added values. The :removed key is a map of key path to removed values. The :changed key is a map of key path to a value change, a map of :from and :to. Options map: | Key | Type | Description |--- |--- |--- | :omit | set or function | Identifies key paths, as vectors, to omit in the description. | :changes-only? | boolean | If true, then log only when the context changes. | :tap? | boolean | If true, the data is sent to `tap>` rather than logged. The :omit option is used to prevent certain key paths from appearing in the result delta; the value for these is replaced with `...`. It is typically a set, but can also be a function that accepts a key path vector. It is commonly used to omit large, insecure values such as `[:response :body]`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |