Added debuglogging of the  messagehandling