log message in message_handler