in troubleshooting/tools/color-logger/main.py [0:0]
def sig_handler(i):
global id
for _ in range(10):
if id < SIGNAL_PAYLOAD_COUNT:
event_id = int(random.random()*1000)
print_log(OrderedDict({
"payload": "x" * SIGNAL_PAYLOAD_SIZE,
"event_id": event_id,
"counter": id,
"global_counter": i,
"time": '%s' % datetime.datetime.now(),
}))
id += 1