[pt2] Reset dynamo log level when exiting inductor debug context (#90473)
When entering an inductor debug context we increase the log level of
dynamo; I guess this makes sense, since if we're debugging inductor, and
inductor calls into dynamo, we probably want visibility into what dynamo is
doing.
But when we exit that context, we probably want to go back to whatever level of
dynamo-specific logging was in place before. Dynamo generates lots of debug
info (guards, bytecode), and it's a lot to sift through if you're not
specifically interested in it.
Differential Revision: [D41841879](https://our.internmc.facebook.com/intern/diff/D41841879/)
Differential Revision: [D41841879](https://our.internmc.facebook.com/intern/diff/D41841879)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90473
Approved by: https://github.com/mlazos, https://github.com/jansel