Skip to content
Snippets Groups Projects
Commit 616d1ab5 authored by Chris Hines's avatar Chris Hines
Browse files

log ctrl master startup

parent 4e8f0918
No related branches found
No related tags found
3 merge requests!77Revert "disable agressive kill and restart",!45Test,!44Dev
Pipeline #11945 passed
...@@ -31,7 +31,8 @@ def stopThreads(signum,frame,event,old_handler): ...@@ -31,7 +31,8 @@ def stopThreads(signum,frame,event,old_handler):
def main(): def main():
import logging import logging
import signal import signal
logging.basicConfig(filename="tes.log",format="%(asctime)s %(levelname)s:%(process)s: %(message)s") FORMAT = "[%(asctime)s %(levelname)s:%(process)s %(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s"
logging.basicConfig(filename="tes.log",format=FORMAT)
logger=logging.getLogger() logger=logging.getLogger()
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
old_handler = signal.getsignal(signal.SIGINT) old_handler = signal.getsignal(signal.SIGINT)
......
...@@ -150,7 +150,8 @@ class Ssh: ...@@ -150,7 +150,8 @@ class Ssh:
#logger.debug("master spawned, attempt communicate") #logger.debug("master spawned, attempt communicate")
#stdout, stderr = ctrl_p.communicate() #stdout, stderr = ctrl_p.communicate()
#logger.debug('communicate on the control port complete') #logger.debug('communicate on the control port complete')
sess.pids.append(ctrl_p.pid) logger.debug("spanwed ssh mux with pid {}".format(ctrl_p.pid))
#sess.pids.append(ctrl_p.pid)
sess.ctrl_processes[ctrlsocket] = ctrl_p sess.ctrl_processes[ctrlsocket] = ctrl_p
try: try:
mode = os.stat(ctrlsocket).st_mode mode = os.stat(ctrlsocket).st_mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment