de-refs assignments for proper logging

This commit is contained in:
Stephen Birarda 2013-09-18 10:59:49 -07:00
parent 1a82ba2301
commit f0b834881b
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ void childClient() {
// construct the deployed assignment from the packet data
Assignment* deployedAssignment = AssignmentFactory::unpackAssignment(packetData, receivedBytes);
qDebug() << "Received an assignment -" << deployedAssignment << "\n";
qDebug() << "Received an assignment -" << *deployedAssignment << "\n";
// switch our nodelist DOMAIN_IP
if (packetData[0] == PACKET_TYPE_CREATE_ASSIGNMENT ||

View file

@ -421,7 +421,7 @@ int main(int argc, const char* argv[]) {
// unpack it
Assignment* createAssignment = new Assignment(packetData, receivedBytes);
qDebug() << "Received a create assignment -" << createAssignment << "\n";
qDebug() << "Received a create assignment -" << *createAssignment << "\n";
// add the assignment at the back of the queue
::assignmentQueueMutex.lock();