]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Log max_pending_service_starts (aka max_pending_activations) when exceeded
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 18 Nov 2014 12:35:28 +0000 (12:35 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 16 Aug 2016 17:27:47 +0000 (18:27 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=86442

bus/activation.c

index 08b8fc22f7bdb956a80aa5a44af2eae234560b32..3bddb35db38303d5cb492f72ec31dc573fba9f1e 100644 (file)
@@ -1660,15 +1660,19 @@ bus_activation_activate_service (BusActivation  *activation,
   dbus_bool_t retval;
   dbus_bool_t was_pending_activation;
   DBusString command;
+  int limit;
 
   _DBUS_ASSERT_ERROR_IS_CLEAR (error);
 
-  if (activation->n_pending_activations >=
-      bus_context_get_max_pending_activations (activation->context))
+  limit = bus_context_get_max_pending_activations (activation->context);
+
+  if (activation->n_pending_activations >= limit)
     {
       dbus_set_error (error, DBUS_ERROR_LIMITS_EXCEEDED,
-                      "The maximum number of pending activations has been reached, activation of %s failed",
-                      service_name);
+                      "The maximum number of pending activations has been "
+                      "reached, activation of %s failed "
+                      "(max_pending_service_starts=%d)",
+                      service_name, limit);
       return FALSE;
     }