Use DBUS_SYSTEM_LOG_WARNING for failure to alter fd-limits
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 4 Nov 2014 14:51:22 +0000 (14:51 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 18 Nov 2014 19:13:47 +0000 (19:13 +0000)
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85105

bus/activation.c
bus/bus.c

index ffedf4c..9610c04 100644 (file)
@@ -1704,7 +1704,7 @@ child_setup (void *user_data)
     {
       /* unfortunately we don't actually know the service name here */
       bus_context_log (activation->context,
-                       DBUS_SYSTEM_LOG_INFO,
+                       DBUS_SYSTEM_LOG_WARNING,
                        "Failed to reset fd limit before activating "
                        "service: %s: %s",
                        error.name, error.message);
index f0d980e..f8b50b4 100644 (file)
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -671,7 +671,7 @@ raise_file_descriptor_limit (BusContext      *context)
 
   if (context->initial_fd_limit == NULL)
     {
-      bus_context_log (context, DBUS_SYSTEM_LOG_INFO,
+      bus_context_log (context, DBUS_SYSTEM_LOG_WARNING,
                        "%s: %s", error.name, error.message);
       dbus_error_free (&error);
       return;
@@ -686,7 +686,7 @@ raise_file_descriptor_limit (BusContext      *context)
    */
   if (!_dbus_rlimit_raise_fd_limit_if_privileged (65536, &error))
     {
-      bus_context_log (context, DBUS_SYSTEM_LOG_INFO,
+      bus_context_log (context, DBUS_SYSTEM_LOG_WARNING,
                        "%s: %s", error.name, error.message);
       dbus_error_free (&error);
       return;