Add logging for winreg monkeypatch