Change print to log port and add port name todo