fix: properly use --trace
flag (backport #16827)
#16830
Merged
--trace
flag (backport #16827)
#16830