def get_log(user_hash: str) -> dict:
    """ return the log for current user

    :param user_hash: hash identifying a user
    :type user_hash: str
    :return: dict with all the info. see protocol
    :rtype: dict
    """

    if len(user_hash) != 64:
        return {
            'success': False,
            'error_msg': 'Invalid Hash',
            'log': ''
        }

    with open("server.log", 'rt') as f:
        lns = []
        for ln in f:
            if user_hash in ln and 'CALLED' in ln:
                lns.append(ln.replace('INFO:root:'+user_hash+' - ', ''))

    return {
        'success': True,
        'error_msg': '',
        'log': "".join(lns)
    }