[tor-commits] [tor/master] Split portfw-error-logging code into a new function.