log received message for debug