gfphoenix78 commented on code in PR #1426:
URL: https://github.com/apache/cloudberry/pull/1426#discussion_r2563855771


##########
gpMgmt/bin/gppylib/logfilter.py:
##########
@@ -278,13 +278,17 @@ def __next__(self):
         item = next(self.source)
         #we need to make a minor format change to the log level field so that
         # our single regex will match both.
-        item[16] = item[16] + ": "
+        # Check if item has enough columns before accessing index 16
+        if isinstance(item, list) and len(item) > 16:
+            item[16] = item[16] + ": "

Review Comment:
   When is the condition false? Is it correct to ignore the else branch?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to