summaryrefslogtreecommitdiff
path: root/sd_daemon/log_util.go.gen
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-19 13:45:53 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-19 13:45:53 -0500
commita04b84778871d77e539a675acbff05f7220e2f5e (patch)
tree4b6c54cdf6d6d5b3c3ef084f604615b2dc2b9c47 /sd_daemon/log_util.go.gen
parent4a3a5525172afd69bc674a2a344065cd9e9a5888 (diff)
Improve documentation.
Diffstat (limited to 'sd_daemon/log_util.go.gen')
-rwxr-xr-xsd_daemon/log_util.go.gen8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd_daemon/log_util.go.gen b/sd_daemon/log_util.go.gen
index 95d56b0..3ca63dc 100755
--- a/sd_daemon/log_util.go.gen
+++ b/sd_daemon/log_util.go.gen
@@ -24,11 +24,11 @@ import "log/syslog"
EOF
- for level in Emerg Alert Crit Err Warning Notice Info Debug; do
+ for pri in Emerg Alert Crit Err Warning Notice Info Debug; do
cat <<EOF
-// $level writes a message with priority syslog.LOG_${level^^} to the log.
-func (l *Logger) $level(msg string) error {
- _, err := l.WriteString(syslog.LOG_${level^^}, msg)
+// $pri writes a message with priority syslog.LOG_${pri^^} to the log.
+func (l *Logger) $pri(msg string) error {
+ _, err := l.WriteString(syslog.LOG_${pri^^}, msg)
return err
}