Add a ring buffer to debugging + other things
authorDirk Koopman <djk@tobit.co.uk>
Sat, 16 Feb 2019 00:29:12 +0000 (00:29 +0000)
committerDirk Koopman <djk@tobit.co.uk>
Sat, 16 Feb 2019 00:29:12 +0000 (00:29 +0000)
commit83445c4f6ec6c885260944a9abe648aced399c40
tree5d7a0cb33b4df5e29852aee6651db399b9d53f3f
parent426a8fc779d9d363e094fd229a8de7d4fcd25518
Add a ring buffer to debugging + other things

Add a ring buffer to debugging to allow sysops to reduce the amount of pointless debugging info that is
continually logged. Likely this is something that big sites or RPi users might want.

The biggy is 'chan'. You want this in the ring buffer, but not logging. To do this:

set/debug chan nologchan

You can log the ring contents at any time with: show/debug_ring
NOTE: you should probably have watchdbg running for this to be much use unless you are doing this as a
matter of record.

export_users has been fixed and is forced to be dumped into /spider/local_data as default.

show/debug now sorts its output.

LogDbg has been fixed to log stuff to the correct category.
cmd/crontab
cmd/export_users.pl
cmd/show/cmd_cache.pl
cmd/show/debug.pl
cmd/show/debug_ring.pl [new file with mode: 0644]
perl/DXDebug.pm
perl/DXLog.pm
perl/DXUser.pm
perl/cluster.pl
perl/watchdbg