Log level: don't demote trace to debug if using the -v flag (#352)

* Log level: don't demote trace to debug if using the -v flag
* CI: apt update before install
This commit is contained in:
mmetc
2024-01-08 14:53:37 +01:00
committed by GitHub
parent 243382aad4
commit 1ac4635e82
3 changed files with 3 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ jobs:
- name: Install functional test dependencies
run: |
sudo apt update
sudo apt install -y nftables iptables ipset
docker network create net-test
python3 -m pip install --upgrade pipenv wheel

View File

@@ -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

View File

@@ -167,7 +167,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)
}