summaryrefslogtreecommitdiff
path: root/sd_daemon/log_util.go.gen
diff options
context:
space:
mode:
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
}