Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing logi-options+ cask prints 6k+ lines of debug / verbose info w/o --debug/--verbose flags #196687

Closed
6 tasks done
pes10k opened this issue Dec 29, 2024 · 2 comments
Closed
6 tasks done

Comments

@pes10k
Copy link

pes10k commented Dec 29, 2024

Verification

Description of issue

brew install logi-options+ prints a tremendous amount of debug / logging / etc information by default (i.e., without --debug or --verbose). Just as a random guess bc I see the argparse mentions high up in the logs, but maybe the + in the cask name confuses things?

Below is a brief excerpt from the output, but the full output is about half a Mb (ive included it here too: logi-options-plus.log)

➜ ~: brew install logi-options+
==> Caveats
You must reboot for the installation of logi-options+ to take effect.

==> Downloading https://download01.logi.com/web/ftp/pub/techsupport/optionsplus/logioptionsplus_installer.zip
Already downloaded: /Users/pes/Library/Caches/Homebrew/downloads/643ae765e6596e7bb788386a880a1cd67b247fa82efd7359838c1d0737889ee1--logioptionsplus_installer.zip
Warning: No checksum defined for cask 'logi-options+', skipping verification.
==> Installing Cask logi-options+
==> Running installer script 'logioptionsplus_installer.app/Contents/MacOS/logioptionsplus_installer'
Password:
[2024-12-29 11:59:13.950] [info] [ArgParser.mm:161] ArgParser: received input arguments: (
    "/opt/homebrew/Caskroom/logi-options+/1.85.655119/logioptionsplus_installer.app/Contents/MacOS/logioptionsplus_installer",
    "--quiet"
)
[2024-12-29 11:59:13.950] [info] [ArgParser.mm:200] arg name:
s
[2024-12-29 11:59:13.950] [info] [ArgParser.mm:164] Processed args: status: {
    args =     {
        "--aipromptbuilder" = 1;
        "--analytics" = 1;
        "--backlight" = 1;
        "--device-recommendation" = 1;
        "--dfu" = 1;
        "--flow" = 1;
        "--logivoice" = 1;
        "--smartactions" = 1;
        "--sso" = 1;
        "--update" = 1;
    };
    lastarg = "--quiet";
    lastval = "";
    status = 0;
}
[2024-12-29 11:59:13.977] [error] [feature_flags_loader.cpp:91] Cannot load json features flags! '/Users/Shared/LogiOptionsPlus/features_cache.json' does not exist!

[2024-12-29 11:59:13.977] [error] [feature_flags_loader.cpp:91] Cannot load json features flags! '/Users/Shared/LogiOptionsPlus/features_cache.json' does not exist!

Command that failed

brew install logi-options+

Output of command with --verbose --debug

First 20 lines included below, but full version here: https://gist.github.com/pes10k/bed121ce7ef79f48f38b74806f10ba64

➜ ~: brew install logi-options+ --verbose --debug
==> Downloading https://formulae.brew.sh/api/formula.jws.json
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.4.13\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.1.1\)\ curl/8.7.1 --header Accept-Language:\ en --fail --remote-time --output /Users/pes/Library/Caches/Homebrew/api/formula.jws.json --location --time-cond /Users/pes/Library/Caches/Homebrew/api/formula.jws.json --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.13\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.1.1\)\ curl/8.7.1 --header Accept-Language:\ en --fail --compressed --speed-limit 100 --speed-time 5 https://formulae.brew.sh/api/formula.jws.json
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading logi-options+
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading logi-options+
==> Downloading https://formulae.brew.sh/api/cask.jws.json
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.4.13\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.1.1\)\ curl/8.7.1 --header Accept-Language:\ en --fail --remote-time --output /Users/pes/Library/Caches/Homebrew/api/cask.jws.json --location --time-cond /Users/pes/Library/Caches/Homebrew/api/cask.jws.json --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.13\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.1.1\)\ curl/8.7.1 --header Accept-Language:\ en --fail --compressed --speed-limit 100 --speed-time 5 https://formulae.brew.sh/api/cask.jws.json
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading logi-options+
==> Cask::Installer#install
==> Printing caveats
==> Caveats
You must reboot for the installation of logi-options+ to take effect.

==> Cask::Installer#fetch

Output of brew doctor and brew config

➜ ~: brew doctor
Your system is ready to brew.
➜ ~: brew config
HOMEBREW_VERSION: 4.4.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6ea9df68df4868ce12ea7c51c85b57dce514f2e8
Last commit: 7 days ago
Branch: stable
Core tap JSON: 29 Dec 18:07 UTC
Core cask tap JSON: 29 Dec 18:07 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.ehqU6FlOdt/org.xquartz:0
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 16-core 64-bit arm_palma
Clang: 16.0.0 build 1600
Git: 2.47.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1.1-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: 16.2
Rosetta 2: false

Output of brew tap

➜ ~: brew tap
homebrew/bundle
homebrew/services
@krehel
Copy link
Member

krehel commented Dec 30, 2024

This doesn't appear to be a Homebrew issue. The installer appears to be writing information out at logging level trace to stderr without a switch to turn it off.

The --quiet switch is used to hide the UI.

All of the information can be ignored by appending 2>/dev/null to brew upgrade but that's not a great solution.

Upstream should provide a switch to invoke a true "quiet" installation.

@khipp khipp closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2024
@pes10k
Copy link
Author

pes10k commented Dec 31, 2024

Okie dokie and understood. Thank you for the explanation and for your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants