1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00

monitoring: Add a config dump handler

This patch adds a handler to the monitoring HTTP server which dumps
the parsed config, so it can easily be reviewed for troubleshooting.
This commit is contained in:
Alberto Bertogli
2020-07-08 23:08:37 +01:00
parent 33446fd565
commit a6a20fb6e0
2 changed files with 11 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ wget -q -o /dev/null -O .data-A/dbg-flags http://localhost:1099/debug/flags \
|| fail "failed to fetch /debug/flags"
wget -q -o /dev/null -O .data-A/dbg-queue http://localhost:1099/debug/queue \
|| fail "failed to fetch /debug/queue"
wget -q -o /dev/null -O .data-A/dbg-config http://localhost:1099/debug/config \
|| fail "failed to fetch /debug/config"
wget -q -o /dev/null -O .data-A/dbg-root http://localhost:1099/404 \
&& fail "fetch /404 worked, should have failed"