From da0c751a44f2b74c7b37dc93aa54ee80265e1bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Can=20G=C3=BCven?= Date: Sun, 26 May 2019 18:22:58 +0300 Subject: [PATCH 1/2] Cookie updated --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b7ce4d..2039cb2 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ Warden is an outgoing request optimizer for creating fast and scalable applicati - [Retry](#retry) - [Holder](#holder) - [Schema](#schema) +- [Debugger](#debugger) - [Api](#api) ### Installing @@ -307,6 +308,24 @@ Default values and properties | logger | ❌ | | Logger will be called on each retry with retry count| +### Debugger + +Warden comes with built-in debugger to provide information about request flow. + +To enable debug mode: +```js +warden.debug = true; +``` + +Flow will be visible on console. + +Example log: +``` +4323 | foo_44: HOLDER ---> CACHE +``` + +This means the request with the unique id 4323 and identifier value foo_44 is moving from Holder to Cache + ### Api #### warden.register() @@ -358,7 +377,7 @@ warden.unregisterRoute('route'); #### warden.registerCachePlugin() -Unregisters route +Registers cache plugin ```js warden.registerCachePlugin('pluginName', { set(){ @@ -369,3 +388,11 @@ warden.registerCachePlugin('pluginName', { } }); ``` + +#### warden.debug + +Enables debug mode or disables based on boolean + +``` +warden.debug = true; +``` From 10b05d940565f65c2ff3f0ed5def5fccbf1ed541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Can=20G=C3=BCven?= Date: Sun, 26 May 2019 18:23:25 +0300 Subject: [PATCH 2/2] Documentation update for logger --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 95d92eb..fd3257e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "puzzle-warden", - "version": "1.6.0", + "version": "1.6.1", "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT",