Skip to content

Commit 961d03d

Browse files
debug logs
1 parent 4d224c4 commit 961d03d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

writeengine/client/we_clients.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,17 @@ void WEClients::Listen(boost::shared_ptr<MessageQueueClient> client, uint32_t co
343343
{
344344
SBS sbs;
345345

346-
idblog("conn index " << connIndex << ", ip addr " << client->addr2String());
346+
idblog("conn index " << connIndex << ", other end " << client->otherEnd());
347347

348348
try
349349
{
350350
while (Busy())
351351
{
352352
// TODO: This call blocks so setting Busy() in another thread doesn't work here...
353+
idblog("receiving packet. conn index " << connIndex << ", other end " << client->otherEnd());
353354
sbs = client->read();
354355

355-
idblog("received packet. conn index " << connIndex << ", ip addr " << client->addr2String() << ", length " << sbs->length());
356+
idblog("received packet. conn index " << connIndex << ", other end " << client->otherEnd() << ", length " << sbs->length());
356357
if (sbs->length() != 0)
357358
{
358359
// cout << "adding data to connIndex " << endl;
@@ -375,17 +376,20 @@ void WEClients::Listen(boost::shared_ptr<MessageQueueClient> client, uint32_t co
375376
catch (std::exception& e)
376377
{
377378
cerr << "WEC Caught EXCEPTION: " << e.what() << endl;
379+
idblog("exception " << e.what());
378380
goto Error;
379381
}
380382
catch (...)
381383
{
382384
cerr << "WEC Caught UNKNOWN EXCEPT" << endl;
385+
idblog("unknown error ");
383386
goto Error;
384387
}
385388

386389
Error:
387390
// error condition! push 0 length bs to messagequeuemap and
388391
// eventually let jobstep error out.
392+
idblog("Error");
389393
boost::mutex::scoped_lock lk(fMlock);
390394

391395
MessageQueueMap::iterator map_tok;

0 commit comments

Comments
 (0)