Yeah, I tried redirecting everything just to make sure I wasn't missing a thing: *stdin*, *stdout*, *stderr*, even *__stdin__*, *__stdout__*, *__stderr__*, even though I knew the dunder methods were reserved to the actual console output.
On Monday, January 27, 2025 at 1:58:28 PM UTC Ravi Jagannadhan wrote: > What about redirecting stderr as well? > > — > “There are no dumb questions” - Carl Sagan > ------------------------------ > *From:* [email protected] <[email protected]> on > behalf of Matteo Di Lena <[email protected]> > *Sent:* Monday, January 27, 2025 4:28:33 AM > *To:* Python Programming for Autodesk Maya <[email protected]> > *Subject:* [Maya-Python] Suppress Maya's logging output (not stdout) > > Hi all! > > I've been trying to find ways to suppress outputs of certain commands - > such as blendShape, undo - without success, so I was wondering if anyone > ever managed to get that working. I can pretty much shut everything inside > the script editor by redirecting `sys.stdout` to `StringIO()`, but those > things mentioned above will just stay around and pollute the output. > > Thanks for any help! > > Matteo > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/python_inside_maya/168dc9e3-c048-4ff6-9a61-f36fea74c657n%40googlegroups.com > > <https://groups.google.com/d/msgid/python_inside_maya/168dc9e3-c048-4ff6-9a61-f36fea74c657n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/python_inside_maya/b664c45f-ddae-43a6-a706-377b71af62fcn%40googlegroups.com.
