summaryrefslogtreecommitdiff
path: root/common/gdm-log.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-06-12 13:48:52 -0400
committerRay Strode <rstrode@redhat.com>2015-06-12 14:29:04 -0400
commit9be58c9ec9a3a411492a5182ac4b0d51fdc3a323 (patch)
tree2e332c83a5fa68e8c7114defb6603fb65045f86e /common/gdm-log.c
parent1ac67f522f5690c27023d98096ca817f12f7eb88 (diff)
downloadgdm-9be58c9ec9a3a411492a5182ac4b0d51fdc3a323.tar.gz
require logind support
Now that consolekit support is gone, this commit drops all the conditionalizing of logind support. https://bugzilla.gnome.org/show_bug.cgi?id=743940
Diffstat (limited to 'common/gdm-log.c')
-rw-r--r--common/gdm-log.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/common/gdm-log.c b/common/gdm-log.c
index 22d8c7d6..8a2d0154 100644
--- a/common/gdm-log.c
+++ b/common/gdm-log.c
@@ -30,9 +30,7 @@
#include <unistd.h>
#include <syslog.h>
-#ifdef WITH_SYSTEMD
#include <systemd/sd-daemon.h>
-#endif
#include <glib.h>
#include <glib/gstdio.h>
@@ -135,27 +133,7 @@ gdm_log_init (void)
initialized = TRUE;
-#ifdef WITH_SYSTEMD
- is_sd_booted = sd_booted () > 0;
-#endif
-
g_log_set_default_handler (gdm_log_default_handler, NULL);
-
- /* Only set up syslog if !systemd, otherwise with systemd
- * enabled, we keep the default GLib log handler which goes to
- * stderr, which is routed to the appropriate place in the
- * systemd service file.
- */
- if (!is_sd_booted) {
- prg_name = g_get_prgname ();
-
- options = LOG_PID;
-#ifdef LOG_PERROR
- options |= LOG_PERROR;
-#endif
-
- openlog (prg_name, options, LOG_DAEMON);
- }
}
void