Adding ability to undo the log-level change, to some extent...it's not too elegant, but it should work in most cases.