microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.54k stars 1.39k forks source link

Admin setting was not found logged multiple times #4593

Open Trenly opened 2 days ago

Trenly commented 2 days ago

Brief description of your issue

It seems that the admin setting for default proxy is being accessed or logging multiple times

Steps to reproduce

Run any command on a fresh install

Expected behavior

Settings would only be accessed / logged once

Actual behavior

See logs below

Environment

2024-06-28 12:52:56.126 [CORE] WinGet, version [1.9.1763-preview], activity [{56EDC85A-BE3B-4CD3-980B-5FA40D345B95}]
2024-06-28 12:52:56.126 [CORE] OS: Windows.Desktop v10.0.26241.5000
2024-06-28 12:52:56.126 [CORE] Command line Args: "C:\Users\WDAGUtilityAccount\AppData\Local\Microsoft\WindowsApps\winget.exe" install Rustlang.Rust.MSVC --disable-interactivity --verbose --logs
2024-06-28 12:52:56.126 [CORE] Package: Microsoft.DesktopAppInstaller v1.24.1763.0
2024-06-28 12:52:56.126 [CORE] IsCOMCall:0; Caller: winget-cli
2024-06-28 12:52:56.138 [CLI ] WinGet invoked with arguments: 'install' 'Rustlang.Rust.MSVC' '--disable-interactivity' '--verbose' '--logs'
2024-06-28 12:52:56.138 [CLI ] Found subcommand: install
2024-06-28 12:52:56.138 [CLI ] Leaf command to execute: root:install
2024-06-28 12:52:56.140 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-06-28 12:52:56.140 [YAML] Detected UTF-8
2024-06-28 12:52:56.140 [YAML] Detected UTF-8
2024-06-28 12:52:56.140 [CORE] Admin setting 'DefaultProxy' was not found or did not contain the expected format
2024-06-28 12:52:56.140 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-06-28 12:52:56.140 [YAML] Detected UTF-8
2024-06-28 12:52:56.140 [YAML] Detected UTF-8
2024-06-28 12:52:56.140 [CORE] Admin setting 'DefaultProxy' was not found or did not contain the expected format
2024-06-28 12:52:56.141 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-06-28 12:52:56.141 [YAML] Detected UTF-8
2024-06-28 12:52:56.141 [YAML] Detected UTF-8
2024-06-28 12:52:56.141 [CORE] Admin setting 'DefaultProxy' was not found or did not contain the expected format
2024-06-28 12:52:56.141 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-06-28 12:52:56.141 [YAML] Detected UTF-8
2024-06-28 12:52:56.141 [YAML] Detected UTF-8
2024-06-28 12:52:56.141 [CORE] Admin setting 'DefaultProxy' was not found or did not contain the expected format
2024-06-28 12:52:56.141 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2024-06-28 12:52:56.141 [YAML] Detected UTF-8
2024-06-28 12:52:56.141 [YAML] Detected UTF-8
2024-06-28 12:52:56.141 [CORE] Admin setting 'DefaultProxy' was not found or did not contain the expected format
2024-06-28 12:52:56.142 [CLI ] Executing command: install