From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH v2 4/5] unbound-dhcp-leases-bridge: Initialize logging after daemonization Date: Wed, 30 Mar 2022 09:56:34 +0000 Message-ID: <20220330095635.621181-4-michael.tremer@ipfire.org> In-Reply-To: <20220330095635.621181-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3034228455437131527==" List-Id: --===============3034228455437131527== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- config/unbound/unbound-dhcp-leases-bridge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbou= nd-dhcp-leases-bridge index b098d98b4..50a0e516a 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -615,8 +615,6 @@ if __name__ =3D=3D "__main__": elif args.verbose >=3D 2: loglevel =3D logging.DEBUG =20 - setup_logging(daemon=3Dargs.daemon, loglevel=3Dloglevel) - bridge =3D UnboundDHCPLeasesBridge(args.dhcp_leases, args.fix_leases, args.unbound_leases, args.hosts) =20 @@ -627,4 +625,6 @@ if __name__ =3D=3D "__main__": } =20 with ctx: + setup_logging(daemon=3Dargs.daemon, loglevel=3Dloglevel) + bridge.run() --=20 2.30.2 --===============3034228455437131527==--