summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-09-10 19:16:48 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-18 18:56:41 +0200
commitd6837823b0a002c9c8afb48caf3eeda5cb73f173 (patch)
tree55beed451ed18fe3d08f96fe7478d5cc6b330648 /src/providers
parent77c0d1f6074059dafd2293f9c42ea0f9d60f8aad (diff)
downloadsssd-d6837823b0a002c9c8afb48caf3eeda5cb73f173.tar.gz
sssd-d6837823b0a002c9c8afb48caf3eeda5cb73f173.tar.bz2
sssd-d6837823b0a002c9c8afb48caf3eeda5cb73f173.zip
BE: Log domain name to journald if available
If the SSSD is compiled with journald support, then all sss_log() statements will include a new field called "SSSD_DOMAIN" that includes the domain name. Filtering only messages from the single domain is then as easy as: # journalctl SSSD_DOMAIN=foo.example.com
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/data_provider_be.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 912b4191..ccd51b45 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -2891,6 +2891,8 @@ int main(int argc, const char *argv[])
return 2;
}
+ setenv(SSS_DOM_ENV, be_domain, 1);
+
ret = die_if_parent_died();
if (ret != EOK) {
/* This is not fatal, don't return */