소스 검색

Merge pull request #12292 from RussWhitehead/logDaliIP_70x

HPCC-21652 Log the Dali IP in permission error message

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 6 년 전
부모
커밋
d5a0f53ad1
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      dali/base/dadfs.cpp

+ 5 - 1
dali/base/dadfs.cpp

@@ -244,7 +244,11 @@ public:
         case DFSERR_CannotFindPartFileCrc:
             return str.append(": Cannot find physical file crc for ").append(errstr);
         case DFSERR_LookupAccessDenied:
-            return str.append(" Lookup access denied for scope ").append(errstr);
+        {
+            StringBuffer ip;
+            queryMyNode()->endpoint().getIpText(ip);
+            return str.appendf(" Lookup access denied for scope %s at Dali %s", errstr.str(), ip.str());
+        }
         case DFSERR_CreateAccessDenied:
             return str.append(" Create access denied for scope ").append(errstr);
         case DFSERR_PhysicalPartAlreadyExists: