From d29b05a4619c000918cbb9f1b9661bc53659c0b2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 22 Apr 2012 01:01:54 +0200 Subject: log: include syslog identifier in default log properties, to avoid comm truncation --- src/shared/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/log.c b/src/shared/log.c index a648b83785..da5309888c 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -466,12 +466,14 @@ static int write_to_journal( "CODE_FILE=%s\n" "CODE_LINE=%i\n" "CODE_FUNCTION=%s\n" + "SYSLOG_IDENTIFIER=%s\n" "MESSAGE=", LOG_PRI(level), LOG_FAC(level), file, line, - func); + func, + program_invocation_short_name); char_array_0(header); -- cgit v1.2.3-54-g00ecf