mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
unbound-dhcp-leases-bridge: Fix exception when running without debug
Fixes: https://bugzilla.ipfire.org/show_bug.cgi?id=12622 Fixes: #12622 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -571,12 +571,13 @@ if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
|
||||
# Setup logging
|
||||
if args.verbose == 1:
|
||||
loglevel = logging.INFO
|
||||
elif args.verbose >= 2:
|
||||
loglevel = logging.DEBUG
|
||||
else:
|
||||
loglevel = logging.WARN
|
||||
loglevel = logging.WARN
|
||||
|
||||
if args.verbose:
|
||||
if args.verbose == 1:
|
||||
loglevel = logging.INFO
|
||||
elif args.verbose >= 2:
|
||||
loglevel = logging.DEBUG
|
||||
|
||||
setup_logging(loglevel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user