[feat] add logging to fetch_key