[PATCH] testparm, give hint about 'log level'

Stefan Metzmacher metze at samba.org
Thu Aug 24 11:55:53 UTC 2017


Hi Andreas,

> If you set 'log level = 10' in the smb.conf file and then run
> 'testparm -v', the log level will be displayed as '2'. The reason is
> that testparm sets the default 'log level' to 2. So it will not print
> what we have in the smb.conf file. We should tell this so users are
> not confused.
> 
> The attached patch adds:
> 
> bin/testparm -s -v | grep 'log level'
>   log level = 2 # (This is is not the value from smb.conf, but probably the
>                    'default' of this command)
> 
> Review appreciated!

I'd prefer that we find a way to display the correct value instead of a
warning.

metze


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170824/409181a3/signature.sig>


More information about the samba-technical mailing list