Skip to content

Commit 79d1e8a

Browse files
committed
Update dhcpstats logconf to reduce stderr writing
1 parent 819f49f commit 79d1e8a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/nav/bin/dhcpstats.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@
4040

4141
def main():
4242
"""Start collecting statistics."""
43-
init_generic_logging(logfile=LOGFILE)
43+
init_generic_logging(
44+
logfile=LOGFILE,
45+
stderr=True,
46+
stderr_level="ERROR",
47+
read_config=True,
48+
)
4449
parse_args()
4550
config = getconfig(CONFIGFILE)
4651
collect_stats(config)

0 commit comments

Comments
 (0)