Skip to content

Commit

Permalink
Log level: don't demote trace to debug if using the -v flag (#98)
Browse files Browse the repository at this point in the history
* Log level: don't demote trace to debug if using the -v flag
* CI: apt update before install
  • Loading branch information
mmetc authored Jan 8, 2024
1 parent 2220a7c commit cd33466
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests_deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:

- name: Install functional test dependencies
run: |
sudo apt update
sudo apt install -y build-essential debhelper devscripts fakeroot lintian
docker network create net-test
python3 -m pip install --upgrade pipenv wheel
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func Execute() error {
return fmt.Errorf("unable to load configuration: %w", err)
}

if *verbose {
if *verbose && log.GetLevel() < log.DebugLevel {
log.SetLevel(log.DebugLevel)
}

Expand Down

0 comments on commit cd33466

Please sign in to comment.