Pārlūkot izejas kodu

HPCC-16089 Fix trigraph warning in esp logging code

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 8 gadi atpakaļ
vecāks
revīzija
4ee1e7244c

+ 6 - 1
esp/logging/loggingagent/espserverloggingagent/loggingagent.hpp

@@ -54,7 +54,12 @@ class CTransIDBuilder : public CInterface, implements IInterface
         if (value)
             id.append(value->get()).append('-');
         else
-            id.append('??-');
+        {
+            const char* ptr = key;
+            if (strlen(key) > 11) //skip 'Transaction'
+                ptr += 11;
+            id.append('?').append(ptr).append('-');
+        }
     }
 
 public: