fixed and added log info in line capacity calculation