Adding more debug output
This commit is contained in:
parent
735a2b02e9
commit
7b1968fa9a
|
|
@ -294,6 +294,10 @@ class sys_command():#Thread):
|
||||||
poller = epoll()
|
poller = epoll()
|
||||||
poller.register(child_fd, EPOLLIN | EPOLLHUP)
|
poller.register(child_fd, EPOLLIN | EPOLLHUP)
|
||||||
|
|
||||||
|
if 'events' in self.kwargs and 'debug' in self.kwargs:
|
||||||
|
print(f'[D] Using triggers for command: {self.cmd}')
|
||||||
|
print(json.dumps(self.kwargs['events']))
|
||||||
|
|
||||||
alive = True
|
alive = True
|
||||||
last_trigger_pos = 0
|
last_trigger_pos = 0
|
||||||
while alive and not self.kwargs['emulate']:
|
while alive and not self.kwargs['emulate']:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
"continue connecting" : "yes",
|
"continue connecting" : "yes",
|
||||||
"s password" : "test"
|
"s password" : "test"
|
||||||
},
|
},
|
||||||
"boot" : true
|
"boot" : true,
|
||||||
|
"debug" : true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue