console log send and receive msg for debug