I'm using some library and I can't edit its source. There is a function in the library that I have to call, and when I call it, it makes this file that I want; however, at the same time, it prints this warning to the screen hundreds of times. The warning is always the same.
Warning during export : no corresponding GDSII layer found for process and purpose
This is kind of annoying and makes me printing anything to stdout/stderr useless, because it just gets flooded with this silly warning.
I know how to redirect stdout/stderr by simply assigning them a different file. Is it possible to simply check what will be written to stdout/stderr, discard it if it's that string, otherwise, print it?