Log the packets message in the sample application.