kcc: default to logging to DBGLVL_WARNING
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 5 Jun 2019 23:40:08 +0000 (11:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 2 Jul 2019 05:49:43 +0000 (05:49 +0000)
commit82f327fce897f452e269d22a8ed348bb5cddfa0b
treeb826af089aa4bebc57fcba66a4c69c7cabe14740
parent731f0b7b52c666cabdc74c42f2f6cbe1e6abaf33
kcc: default to logging to DBGLVL_WARNING

If the "-d" debug level parameter is not supplied, default to DBGLVL_WARNING.
Overiding the "log level" set in smb.conf.

When samba runs the kcc command stderr output is logged at DBGLVL_ERR,
the default log destination is stderr.  As a result any log messages
generated by the kcc command, are effectively logged at DBGLVL_ERR.
This causes issues if auth or audit logging are enabled in smb.conf.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Tim Beale <timbeale@catalyst.net.nz>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jul  2 05:49:43 UTC 2019 on sn-devel-184
source4/scripting/bin/samba_kcc