[FS#562] Please make log-lvel of odhcpd customizable

LEDE Bugs lede-bugs at lists.infradead.org
Tue Feb 28 01:24:18 PST 2017


The following task has a new comment added:

FS#562 - Please make log-lvel of odhcpd customizable
User who did this - Hannu Nyman (hnyman)

----------
There is an uci way in the most recent version of odhcpd (2017-02-21) in LEDE master. Originally implemented in odhcpd with https://git.lede-project.org/?p=project/odhcpd.git;a=commitdiff;h=a898ee5458950203d4b2f8fec28c85313c855b91;hp=51c756cfc15c63322df9fdb70d5c701cfb6b9a9f

The option is pretty well hidden, as it is not in the default uci config section, nor is it mentioned anywhere in the LEDE package source. Only references to it can be found in the odhcpd source repo itself (that normal users never look into).

In practice we need to edit the odhcpd section in /etc/config/dhcp and add a new "loglevel" option that takes 0-7 as the value. 6 is the current verbose default, while 4 is the old default that only displays warnings and errors.

    /etc/config/dhcp
    
    config odhcpd 'odhcpd'
            option maindhcp '0'
            option leasefile '/tmp/hosts/odhcpd'
            option leasetrigger '/usr/sbin/odhcpd-update'
            option loglevel '4'

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=562#comment2011



More information about the lede-bugs mailing list