mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
unbound-dhcp-leases-bridge: Initialize logging after daemonization
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
091cb62ada
commit
f961135513
@@ -615,8 +615,6 @@ if __name__ == "__main__":
|
||||
elif args.verbose >= 2:
|
||||
loglevel = logging.DEBUG
|
||||
|
||||
setup_logging(daemon=args.daemon, loglevel=loglevel)
|
||||
|
||||
bridge = UnboundDHCPLeasesBridge(args.dhcp_leases, args.fix_leases,
|
||||
args.unbound_leases, args.hosts)
|
||||
|
||||
@@ -627,4 +625,6 @@ if __name__ == "__main__":
|
||||
}
|
||||
|
||||
with ctx:
|
||||
setup_logging(daemon=args.daemon, loglevel=loglevel)
|
||||
|
||||
bridge.run()
|
||||
|
||||
Reference in New Issue
Block a user