[master] 1916914 Fix up std.syslog example

Tollef Fog Heen tfheen at varnish-cache.org
Mon Jul 22 09:35:08 CEST 2013


commit 1916914d41e14913a00c822d3f8fef3b52d32a12
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Mon Jul 22 09:33:53 2013 +0200

    Fix up std.syslog example
    
    Thanks to InvertedAcceleration <chris.magee at velocity42.com> for a
    patch that pointed me at documentation that needed improving.

diff --git a/doc/sphinx/reference/vmod_std.rst b/doc/sphinx/reference/vmod_std.rst
index 984331e..f8c4456 100644
--- a/doc/sphinx/reference/vmod_std.rst
+++ b/doc/sphinx/reference/vmod_std.rst
@@ -95,9 +95,10 @@ Prototype
 Return value
 	Void
 Description
-	Logs *string* to syslog marked with *priority*.
+	Logs *string* to syslog marked with *priority*.  See your
+	system's syslog.h file for the legal values of *priority*.
 Example
-	std.syslog( LOG_USER|LOG_ALERT, "There is serious troble");
+	std.syslog(8 + 1, "Something is wrong");
 
 fileread
 --------



More information about the varnish-commit mailing list