Add a handy command for dumping internal data over a socket for inspection
This commit is contained in:
parent
a7207011ba
commit
9c37804f75
|
@ -619,6 +619,11 @@ def await_command(ear):
|
||||||
elif command == 'status':
|
elif command == 'status':
|
||||||
s.send(mirror_status())
|
s.send(mirror_status())
|
||||||
|
|
||||||
|
elif command == 'dump':
|
||||||
|
s.send(str(jobs))
|
||||||
|
s.send("\n")
|
||||||
|
s.send(str(repos))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.error('Received unrecognized command: %s' % command)
|
logging.error('Received unrecognized command: %s' % command)
|
||||||
s.send('Bad command: %s' % command)
|
s.send('Bad command: %s' % command)
|
||||||
|
|
Loading…
Reference in New Issue