fix: fix differing stacktrace on stdout and file
fix: fix differing stacktrace on stdout and file: a task in Trending-SWE1.0 (Harbor dataset). Title: fix: fix differing stacktrace on stdout and file
The task
**Title:** fix: fix differing stacktrace on stdout and file
Part of scalingX/Trending-SWE1.0.