@@ -566,7 +566,9 @@ namespace Tests {
566
566
hostConfig.SetHostConfigId (nodeId);
567
567
TString path = TStringBuilder () << Runtime->GetTempDir () << " pdisk_1.dat" ;
568
568
hostConfig.AddDrive ()->SetPath (path);
569
- Cerr << " test_client.cpp: SetPath # " << path << Endl;
569
+ if (Settings->Verbose ) {
570
+ Cerr << " test_client.cpp: SetPath # " << path << Endl;
571
+ }
570
572
bsConfigureRequest->Record .MutableRequest ()->AddCommand ()->MutableDefineHostConfig ()->CopyFrom (hostConfig);
571
573
572
574
auto & host = *boxConfig.AddHost ();
@@ -1254,6 +1256,7 @@ namespace Tests {
1254
1256
, DomainName(settings.DomainName)
1255
1257
, SupportsRedirect(settings.SupportsRedirect)
1256
1258
, StoragePoolTypes(settings.StoragePoolTypes)
1259
+ , Verbose(settings.Verbose)
1257
1260
, FunctionRegistry(NKikimr::NMiniKQL::CreateFunctionRegistry(NKikimr::NMiniKQL::CreateBuiltinRegistry()))
1258
1261
, LoadedFunctionRegistry(NKikimr::NMiniKQL::CreateFunctionRegistry(NKikimr::NMiniKQL::CreateBuiltinRegistry()))
1259
1262
{
@@ -1272,7 +1275,9 @@ namespace Tests {
1272
1275
Client.reset (new NMsgBusProxy::TMsgBusClient (ClientConfig));
1273
1276
Client->Init ();
1274
1277
1275
- Cerr << " TClient is connected to server " << ClientConfig.Ip << " :" << ClientConfig.Port << Endl;
1278
+ if (Verbose) {
1279
+ Cerr << " TClient is connected to server " << ClientConfig.Ip << " :" << ClientConfig.Port << Endl;
1280
+ }
1276
1281
}
1277
1282
1278
1283
const NMsgBusProxy::TMsgBusClientConfig& TClient::GetClientConfig () const {
@@ -1350,13 +1355,17 @@ namespace Tests {
1350
1355
1351
1356
void TClient::WaitRootIsUp (const TString& root) {
1352
1357
while (true ) {
1353
- Cerr << " WaitRootIsUp '" << root << " '..." << Endl;
1358
+ if (Verbose) {
1359
+ Cerr << " WaitRootIsUp '" << root << " '..." << Endl;
1360
+ }
1354
1361
1355
1362
TAutoPtr<NMsgBusProxy::TBusResponse> resp = Ls (root);
1356
1363
UNIT_ASSERT (resp);
1357
1364
1358
1365
if (resp->Record .GetStatus () == NMsgBusProxy::MSTATUS_OK && resp->Record .GetSchemeStatus () == NKikimrScheme::StatusSuccess) {
1359
- Cerr << " WaitRootIsUp '" << root << " ' success." << Endl;
1366
+ if (Verbose) {
1367
+ Cerr << " WaitRootIsUp '" << root << " ' success." << Endl;
1368
+ }
1360
1369
break ;
1361
1370
}
1362
1371
}
@@ -1381,7 +1390,9 @@ namespace Tests {
1381
1390
TAutoPtr<NBus::TBusMessage> reply;
1382
1391
SendAndWaitCompletion (request, reply);
1383
1392
1384
- Cout << PrintToString<NMsgBusProxy::TBusResponse>(reply.Get ()) << Endl;
1393
+ if (Verbose) {
1394
+ Cout << PrintToString<NMsgBusProxy::TBusResponse>(reply.Get ()) << Endl;
1395
+ }
1385
1396
return reply;
1386
1397
}
1387
1398
@@ -1411,7 +1422,9 @@ namespace Tests {
1411
1422
msg->Record .MutableFlatTxId ()->SetSchemeShardTabletId (schemeshard);
1412
1423
msg->Record .MutableFlatTxId ()->SetPathId (pathId);
1413
1424
msg->Record .MutablePollOptions ()->SetTimeout (timeout.MilliSeconds ());
1414
- Cerr << " waiting..." << Endl;
1425
+ if (Verbose) {
1426
+ Cerr << " waiting..." << Endl;
1427
+ }
1415
1428
status = SyncCall (msg, reply);
1416
1429
if (status != NBus::MESSAGE_OK) {
1417
1430
const char *description = NBus::MessageStatusDescription (status);
@@ -1949,7 +1962,9 @@ namespace Tests {
1949
1962
}
1950
1963
1951
1964
TAutoPtr<NMsgBusProxy::TBusResponse> TClient::LsImpl (const TString& path) {
1952
- Cerr << " TClient::Ls request: " << path << Endl;
1965
+ if (Verbose) {
1966
+ Cerr << " TClient::Ls request: " << path << Endl;
1967
+ }
1953
1968
1954
1969
TAutoPtr<NMsgBusProxy::TBusSchemeDescribe> request (new NMsgBusProxy::TBusSchemeDescribe ());
1955
1970
request->Record .SetPath (path);
@@ -1958,7 +1973,9 @@ namespace Tests {
1958
1973
NBus::EMessageStatus msgStatus = SendWhenReady (request, reply);
1959
1974
UNIT_ASSERT_VALUES_EQUAL (msgStatus, NBus::MESSAGE_OK);
1960
1975
1961
- Cerr << " TClient::Ls response: " << PrintToString<NMsgBusProxy::TBusResponse>(reply.Get ()) << Endl;
1976
+ if (Verbose) {
1977
+ Cerr << " TClient::Ls response: " << PrintToString<NMsgBusProxy::TBusResponse>(reply.Get ()) << Endl;
1978
+ }
1962
1979
1963
1980
return dynamic_cast <NMsgBusProxy::TBusResponse*>(reply.Release ());
1964
1981
}
0 commit comments