From 9c37804f757083b258458e5992572478a0b668b7 Mon Sep 17 00:00:00 2001 From: Anthony Brennan Date: Tue, 14 Sep 2021 18:51:17 -0400 Subject: [PATCH] Add a handy command for dumping internal data over a socket for inspection --- merlin/merlin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/merlin/merlin.py b/merlin/merlin.py index e2f603c..cd6fb06 100755 --- a/merlin/merlin.py +++ b/merlin/merlin.py @@ -619,6 +619,11 @@ def await_command(ear): elif command == 'status': s.send(mirror_status()) + elif command == 'dump': + s.send(str(jobs)) + s.send("\n") + s.send(str(repos)) + else: logging.error('Received unrecognized command: %s' % command) s.send('Bad command: %s' % command)