List the connkey that isn't open, differentiate logs a bit to help debug.

This commit is contained in:
Isaac Connor 2021-12-15 09:11:46 -05:00
parent d86456b6f2
commit 854d11ce9d
1 changed files with 3 additions and 3 deletions

View File

@ -128,10 +128,10 @@ bool StreamBase::checkCommandQueue() {
return true;
}
} else if ( connkey ) {
Warning("No sd in checkCommandQueue, comms not open?");
Warning("No sd in checkCommandQueue, comms not open for connkey %06d?", connkey);
} else {
// Perfectly valid if only getting a snapshot
Debug(1, "No sd in checkCommandQueue, comms not open?");
Debug(1, "No sd in checkCommandQueue, comms not open.");
}
return false;
} // end bool StreamBase::checkCommandQueue()
@ -387,8 +387,8 @@ void StreamBase::openComms() {
rem_addr.sun_family = AF_UNIX;
last_comm_update = std::chrono::system_clock::now();
} // end if connKey > 0
Debug(3, "comms open at %s", loc_sock_path);
} // end if connKey > 0
} // end void StreamBase::openComms()
void StreamBase::closeComms() {