log paths only for files with errors