Restore stdout/stderr when restoring loggers (logging tests sometimes redirect them).
Restore stdout/stderr when restoring loggers (logging tests sometimes redirect them).


Former-commit-id: a1522ffcdef0dc53955bd4baae9cc0771813fa44 [formerly a1522ffcdef0dc53955bd4baae9cc0771813fa44 [formerly 735b39ba17c9ce78923fba2a83b048f96ce7c581]]
Former-commit-id: b92f16cb7e7e0c99d67d55e6c4a6d0ee18045ee0
Former-commit-id: e9e1e40304c32119bb2a9448a224e2c67797dca0
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine