Fix port logging