Adds more detailed logging for the port handler.