def cleanup_old_logfile():
    try:
        open(options.LogPath, 'w').close()
        LOGGER.info('old log cleared')
    except FileNotFoundError:
        LOGGER.info('No old log file was found')
def cleanup_old_logfile():
    try:
        open(options.LogPath, 'w').close()
        LOGGER.info('old log cleared')
    except FileNotFoundError:
        LOGGER.info('No old log file was found')