services: mpd: Fix log to file.
(match value (%unset-value ...)) is equivalent here to (match value (_ ...)). Even if you set 'log-file to some path, it's always "syslog" in the configuration file. * gnu/services/audio.scm (mpd): Fix buggy 'match'. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: If397919c2844d856c69fe00b8907b7b3fd86e564master
parent
603d523fc3
commit
2455c4ded9
|
@ -251,16 +251,14 @@ user-group instead~%"))
|
||||||
(configuration-field-error #f 'group value))))
|
(configuration-field-error #f 'group value))))
|
||||||
|
|
||||||
(define (mpd-log-file-sanitizer value)
|
(define (mpd-log-file-sanitizer value)
|
||||||
(match value
|
;; XXX: While leaving the 'sys_log' option out of the mpd.conf file is
|
||||||
(%unset-value
|
;; supposed to cause logging to happen via systemd (elogind provides a
|
||||||
;; XXX: While leaving the 'sys_log' option out of the mpd.conf file is
|
;; compatible interface), this doesn't work (nothing gets logged); use
|
||||||
;; supposed to cause logging to happen via systemd (elogind provides a
|
;; syslog instead.
|
||||||
;; compatible interface), this doesn't work (nothing gets logged); use
|
(let ((value (maybe-value value "syslog")))
|
||||||
;; syslog instead.
|
(if (string? value)
|
||||||
"syslog")
|
value
|
||||||
((? string?)
|
(configuration-field-error #f 'log-file value))))
|
||||||
value)
|
|
||||||
(_ (configuration-field-error #f 'log-file value))))
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
|
|
Reference in New Issue