Restore the global state of the log vars, so that test_cgi can be run twice without failures.
Restore the global state of the log vars, so that test_cgi can be run twice without failures.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator