fix port logging