def truncated(text, max_length=100, msg='...'):
    if len(text) < max_length:
        return text
    else:
        return text[:max_length] + msg
Generate a startpcap.sh traffic logging script.
dataset/ETHPy150Open scrapinghub/splash/splash/utils.py/truncated--crossover with--dataset/ETHPy150Open coreemu/core/daemon/core/services/utility.py/PcapService.generateconfig