Added debug print_log calls for serial port loops