Skip to content

Commit c7fd32f

Browse files
authored
[Filestore] Add logs for endpoints restoration (#2812)
* [Filestore] Add logs for endpoints restoration * fix log message
1 parent 932587f commit c7fd32f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cloud/filestore/libs/endpoint/endpoint_manager.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ private: \
197197

198198
TVector<TFuture<void>> futures;
199199
for (auto endpointId: storedIds) {
200+
STORAGE_INFO("Restoring endpoint, ID: " << endpointId.Quote());
200201
auto requestOrError = Storage->GetEndpoint(endpointId);
201202
if (HasError(requestOrError)) {
202203
STORAGE_WARN("Failed to restore endpoint. ID: " << endpointId
@@ -253,6 +254,9 @@ private: \
253254
Storage->RemoveEndpoint(endpointId);
254255
}
255256
}
257+
else {
258+
STORAGE_INFO("Endpoint was restored. ID: " << endpointId.Quote());
259+
}
256260
}
257261

258262
void AddStartingSocket(

cloud/filestore/libs/storage/service/service_actor_createsession.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ void TCreateSessionActor::HandleDescribeFileStoreResponse(
216216

217217
if (FAILED(msg->GetStatus())) {
218218
if (GetErrorKind(msg->GetError()) != EErrorKind::ErrorRetriable) {
219+
LOG_ERROR(
220+
ctx,
221+
TFileStoreComponents::SERVICE_WORKER,
222+
"%s Failed to describe filestore %s Error: %s",
223+
LogTag().c_str(),
224+
FileSystemId.c_str(),
225+
FormatError(msg->GetError()).c_str());
219226
ReportDescribeFileStoreError();
220227
}
221228

0 commit comments

Comments
 (0)