Skip to content

Commit

Permalink
DPL: improve message when driver client is not yet connected (#5582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Feb 28, 2021
1 parent 353895c commit 5e6f66d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Framework/Core/src/WSDriverClient.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,25 @@ void WSDriverClient::flushPending()
static bool printed1 = false;
static bool printed2 = false;
if (!mClient) {
if (mBacklog.size() > 1000) {
if (mBacklog.size() > 2000) {
if (!printed1) {
LOG(WARNING) << "Unable to communicate with driver because client does not exist";
LOG(WARNING) << "Unable to communicate with driver because client does not exist. Continuing connection attempts.";
printed1 = true;
}
}
return;
}
if (!(mClient->isHandshaken())) {
if (mBacklog.size() > 1000) {
if (mBacklog.size() > 2000) {
if (!printed2) {
LOG(WARNING) << "Unable to communicate with driver because client is not connected";
LOG(WARNING) << "Unable to communicate with driver because client is not connected. Continuing connection attempts.";
printed2 = true;
}
}
return;
}
if (printed1 || printed2) {
LOGP(warning, "DriverClient connected successfully. Flushing message backlog of {} messages", mBacklog.size());
LOGP(warning, "DriverClient connected successfully. Flushing message backlog of {} messages. All is good.", mBacklog.size());
printed1 = false;
printed2 = false;
}
Expand Down

0 comments on commit 5e6f66d

Please sign in to comment.