param: Mark syslog and syslog_only as deprecated
authorChristof Schmitt <cs@samba.org>
Fri, 9 Jan 2015 22:13:37 +0000 (15:13 -0700)
committerChristof Schmitt <cs@samba.org>
Mon, 23 Mar 2015 20:22:11 +0000 (21:22 +0100)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
docs-xml/smbdotconf/logging/syslog.xml
docs-xml/smbdotconf/logging/syslogonly.xml
lib/param/param_table.c

index e4722d8164f4fc0b8952cefa72ad75bed9bb830c..f58a9a5f5327ad196d8db18cb31ba46ba77dae11 100644 (file)
     level less than this value will be sent to syslog. There still will be some
     logging to log.[sn]mbd even if <emphasis>syslog only</emphasis> is enabled.
     </para>
+
+    <para>The <smbconfoption name="logging"/> parameter should be used
+      instead. When <smbconfoption name="logging"/> is set, it
+      overrides the <smbconfoption name="syslog"/> parameter.</para>
 </description>
 <value type="default">1</value>
 </samba:parameter>
index 0fe74713e2cbb2b892459232cf6022e2f1b5b63e..aec40c2431e48478b60b810c687fc41e2951b7ea 100644 (file)
@@ -9,6 +9,11 @@
     syslog only, and not to the debug log files. There still will be some
        logging to log.[sn]mbd even if <emphasis>syslog only</emphasis> is enabled.
     </para>
+
+
+    <para>The <smbconfoption name="logging"/> parameter should be used
+      instead. When <smbconfoption name="logging"/> is set, it
+      overrides the <smbconfoption name="syslog only"/> parameter.</para>
 </description>
 <value type="default">no</value>
 </samba:parameter>
index 464a7c98e1576b2a1dd5f09a4106c68ec53d8494..d78b4d1f6642cc9f5eaad4260f05fdc171cbde36 100644 (file)
@@ -1185,7 +1185,7 @@ struct parm_struct parm_table[] = {
                .offset         = GLOBAL_VAR(syslog),
                .special        = NULL,
                .enum_list      = NULL,
-               .flags          = FLAG_ADVANCED,
+               .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
        },
        {
                .label          = "syslog only",
@@ -1194,7 +1194,7 @@ struct parm_struct parm_table[] = {
                .offset         = GLOBAL_VAR(syslog_only),
                .special        = NULL,
                .enum_list      = NULL,
-               .flags          = FLAG_ADVANCED,
+               .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
        },
        {
                .label          = "log file",