Only One Line of Exception Information Is Printed in the Stack Information When an Exception Is Throwed

Symptom

When an exception is thrown, only one line of exception information is printed in the stack information.

Possible Cause

The default stack limit is set to 0, indicating that only the stack top information is printed.

sys.tracebacklimit = 0

Solution

Add the following configuration after import mx_rag to the running demo or at the calling position:

import mx_rag
import sys
# Add the following information after the sub-module of import mx_rag or mx_rag:
sys.tracebacklimit = 1000

Printing stack information may cause the printing of call point parameters. The parameters may contain sensitive information.