From: Lennart Poettering Date: Sat, 21 Apr 2012 23:01:54 +0000 (+0200) Subject: log: include syslog identifier in default log properties, to avoid comm truncation X-Git-Tag: v183~225 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d29b05a4619c000918cbb9f1b9661bc53659c0b2 log: include syslog identifier in default log properties, to avoid comm truncation --- diff --git a/src/shared/log.c b/src/shared/log.c index a648b8378..da5309888 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);