Skip to content

Commit cd33466

Browse files
authored
Log level: don't demote trace to debug if using the -v flag (#98)
* Log level: don't demote trace to debug if using the -v flag * CI: apt update before install
1 parent 2220a7c commit cd33466

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/tests_deb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535

3636
- name: Install functional test dependencies
3737
run: |
38+
sudo apt update
3839
sudo apt install -y build-essential debhelper devscripts fakeroot lintian
3940
docker network create net-test
4041
python3 -m pip install --upgrade pipenv wheel

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func Execute() error {
148148
return fmt.Errorf("unable to load configuration: %w", err)
149149
}
150150

151-
if *verbose {
151+
if *verbose && log.GetLevel() < log.DebugLevel {
152152
log.SetLevel(log.DebugLevel)
153153
}
154154

0 commit comments

Comments
 (0)