Skip to content

Commit 10b071b

Browse files
committed
Restore some log messages needed for testing in the main repo
1 parent 9374d8b commit 10b071b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

collector/lib/CollectorOutput.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "CollectorOutput.h"
22

3-
#include "internalapi/sensor/collector.pb.h"
43
#include "internalapi/sensor/collector_iservice.pb.h"
54

65
#include "GRPCUtil.h"
@@ -104,7 +103,7 @@ SignalHandler::Result CollectorOutput::SendMsg(const MessageType& msg) {
104103
void CollectorOutput::EstablishGrpcStream() {
105104
while (EstablishGrpcStreamSingle()) {
106105
}
107-
CLOG(INFO) << "Signal service client terminating.";
106+
CLOG(INFO) << "Service client terminating.";
108107
}
109108

110109
bool CollectorOutput::EstablishGrpcStreamSingle() {
@@ -135,7 +134,10 @@ bool CollectorOutput::EstablishGrpcStreamSingle() {
135134
}
136135

137136
if (success) {
137+
CLOG(INFO) << "Successfully established GRPC stream.";
138138
stream_active_.store(true, std::memory_order_release);
139+
} else {
140+
CLOG(WARNING) << "Failed to establish GRPC stream, retrying...";
139141
}
140142
return true;
141143
}

0 commit comments

Comments
 (0)