nova mudanca na funcao write_log: print_packet