Skip to content

Commit b72128b

Browse files
committed
Restore some log messages needed for testing in the main repo
1 parent 868ab96 commit b72128b

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"
@@ -105,7 +104,7 @@ SignalHandler::Result CollectorOutput::SendMsg(const MessageType& msg) {
105104
void CollectorOutput::EstablishGrpcStream() {
106105
while (EstablishGrpcStreamSingle()) {
107106
}
108-
CLOG(INFO) << "Signal service client terminating.";
107+
CLOG(INFO) << "Service client terminating.";
109108
}
110109

111110
bool CollectorOutput::EstablishGrpcStreamSingle() {
@@ -136,7 +135,10 @@ bool CollectorOutput::EstablishGrpcStreamSingle() {
136135
}
137136

138137
if (success) {
138+
CLOG(INFO) << "Successfully established GRPC stream.";
139139
stream_active_.store(true, std::memory_order_release);
140+
} else {
141+
CLOG(WARNING) << "Failed to establish GRPC stream, retrying...";
140142
}
141143
return true;
142144
}

0 commit comments

Comments
 (0)