fix cat log error api and add the dependendy graph