Skip to content

Commit e35fab5

Browse files
committed
XrdApps::JCache Remove some debug output and re-format
1 parent a14947e commit e35fab5

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/XrdApps/XrdClJCachePlugin/handler/XrdClJCacheDirListHandler.cc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,15 @@
3232

3333
namespace XrdCl {
3434
// ---------------------------------------------------------------------- //
35-
void JCacheDirListHandler::HandleResponse(XrdCl::XRootDStatus *pStatus, XrdCl::AnyObject *pResponse) {
36-
std::cerr << "Handling DirList Response ..." << mPath << std::endl;
35+
void JCacheDirListHandler::HandleResponse(XrdCl::XRootDStatus *pStatus,
36+
XrdCl::AnyObject *pResponse) {
3737
if (pStatus->IsOK()) {
3838
if (pResponse) {
3939
// save the listing
40-
std::cerr << "Saving DirList: " << mPath << std::endl;
41-
XrdCl::DirectoryList* lList;
40+
XrdCl::DirectoryList *lList;
4241
pResponse->Get(lList);
4342
pSystem->SaveDirList(mPath, lList);
44-
} else {
45-
std::cerr << "Failed Listing: " << mPath << std::endl;
4643
}
47-
} else {
48-
std::cerr << "Failed Listing: " << mPath << std::endl;
4944
}
5045
mHandler->HandleResponse(pStatus, pResponse);
5146
}

src/XrdApps/XrdClJCachePlugin/system/XrdClJCacheSystem.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ XRootDStatus JCacheSystem::DirList(const std::string &path,
8383

8484
auto lhandler = new JCacheDirListHandler(handler, this, ListingPath);
8585

86-
std::cerr << "Creating handler for path: " << path << std::endl;
8786
XRootDStatus st = pSystem->DirList(path, flags, lhandler, timeout);
88-
std::cerr << "Command sumbitted" << std::endl;
8987
if (!st.IsOK()) {
9088
std::cerr << "error: unable to get listing: " << path << std::endl;
9189
}
@@ -309,7 +307,7 @@ JCacheSystem::Deserialize(const std::string &data) {
309307
auto idx1 = data.find('\t');
310308
auto idx2 = data.find('\t', idx1 + 1);
311309
std::string hostaddress = data.substr(0, idx1);
312-
std::string name = data.substr(idx1 + 1, idx2-idx1-1);
310+
std::string name = data.substr(idx1 + 1, idx2 - idx1 - 1);
313311
std::string stat_str = data.substr(idx2 + 1);
314312
// std::cerr << stat_str << std::endl;
315313
return std::make_tuple(url_decode(hostaddress), url_decode(name),

0 commit comments

Comments
 (0)