[libvirt] [PATCH] Use daemon log facility for journald
Ján Tomko
jtomko at redhat.com
Thu Sep 24 06:31:00 UTC 2015
On Wed, Sep 23, 2015 at 08:13:02PM +0200, Guido Günther wrote:
> otherwise messages end up in /var/log/kern.log if journald forwards to
> syslog.
>
> Closes: #799633
Please use the full URL:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799633
> ---
> src/util/virlog.c | 1 +
> 1 file changed, 1 insertion(+)
>
ACK
Jan
> diff --git a/src/util/virlog.c b/src/util/virlog.c
> index b45ee91..627f4cb 100644
> --- a/src/util/virlog.c
> +++ b/src/util/virlog.c
> @@ -920,6 +920,7 @@ virLogOutputToJournald(virLogSourcePtr source,
> journalAddString(&state, "MESSAGE", rawstr);
> journalAddInt(&state, "PRIORITY",
> virLogPrioritySyslog(priority));
> + journalAddInt(&state, "SYSLOG_FACILITY", LOG_DAEMON);
> journalAddString(&state, "LIBVIRT_SOURCE", source->name);
> if (filename)
> journalAddString(&state, "CODE_FILE", filename);
> --
> 2.1.4
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150924/2731564f/attachment-0001.sig>
More information about the libvir-list
mailing list