Add a handy command for dumping internal data over a socket for inspection

This commit is contained in:
Anthony Brennan 2021-09-14 18:51:17 -04:00 committed by Mirror
parent a7207011ba
commit 9c37804f75
1 changed files with 5 additions and 0 deletions

View File

@ -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)