Merge pull request #17928 from keszybz/nss-logging
Enable logging in nss modules
This commit is contained in:
@@ -3854,6 +3854,16 @@ int json_log_internal(
|
||||
"CONFIG_COLUMN=%u", source_column,
|
||||
LOG_MESSAGE("%s:%u:%u: %s", source, source_line, source_column, buffer),
|
||||
NULL);
|
||||
else if (source_line > 0 && source_column > 0)
|
||||
return log_struct_internal(
|
||||
LOG_REALM_PLUS_LEVEL(LOG_REALM_SYSTEMD, level),
|
||||
error,
|
||||
file, line, func,
|
||||
"MESSAGE_ID=" SD_MESSAGE_INVALID_CONFIGURATION_STR,
|
||||
"CONFIG_LINE=%u", source_line,
|
||||
"CONFIG_COLUMN=%u", source_column,
|
||||
LOG_MESSAGE("(string):%u:%u: %s", source_line, source_column, buffer),
|
||||
NULL);
|
||||
else
|
||||
return log_struct_internal(
|
||||
LOG_REALM_PLUS_LEVEL(LOG_REALM_SYSTEMD, level),
|
||||
|
||||
Reference in New Issue
Block a user