mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 10:30:13 +01:00
logging: configure dnsmasq's logging in shared mode via nm-logging
This commit is contained in:
parent
43da186ec3
commit
cc993aa020
2 changed files with 3 additions and 2 deletions
|
|
@ -556,7 +556,7 @@ unmanaged-devices=mac:00:22:68:1c:59:b1;mac:00:1E:65:30:D1:C4;interface-name:eth
|
|||
<member>AUTOIP4 : AutoIP operations</member>
|
||||
<member>DNS : Domain Name System related operations</member>
|
||||
<member>VPN : Virtual Private Network connections and operations</member>
|
||||
<member>SHARING : Connection sharing</member>
|
||||
<member>SHARING : Connection sharing. With TRACE level log queries for dnsmasq instance</member>
|
||||
<member>SUPPLICANT : WPA supplicant related operations</member>
|
||||
<member>AGENTS : Secret agents operations and communication</member>
|
||||
<member>SETTINGS : Settings/config service operations</member>
|
||||
|
|
|
|||
|
|
@ -175,7 +175,8 @@ create_dm_cmd_line (const char *iface,
|
|||
cmd = nm_cmd_line_new ();
|
||||
nm_cmd_line_add_string (cmd, dm_binary);
|
||||
|
||||
if (getenv ("NM_DNSMASQ_DEBUG")) {
|
||||
if ( nm_logging_enabled (LOGL_TRACE, LOGD_SHARING)
|
||||
|| getenv ("NM_DNSMASQ_DEBUG")) {
|
||||
nm_cmd_line_add_string (cmd, "--log-dhcp");
|
||||
nm_cmd_line_add_string (cmd, "--log-queries");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue