[gjs] Gio: Log errors that we catch when an app fails in a DBus method handler



commit 781b0c458b4d60896677b6a7b4e224bc92b2a5a4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Nov 15 14:26:24 2013 -0500

    Gio: Log errors that we catch when an app fails in a DBus method handler
    
    While these are sent to the client otherwise, it's rare that the client will
    print those out, and we lose the stack trace. It really is our programming
    error, not theirs.

 modules/overrides/Gio.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/modules/overrides/Gio.js b/modules/overrides/Gio.js
index fb3d372..357fd55 100644
--- a/modules/overrides/Gio.js
+++ b/modules/overrides/Gio.js
@@ -268,6 +268,7 @@ function _handleMethodCall(info, impl, method_name, parameters, invocation) {
                     // likely to be a normal JS error
                     name = 'org.gnome.gjs.JSError.' + name;
                 }
+                logError(e, "Exception in method call: " + method_name);
                 invocation.return_dbus_error(name, e.message);
             }
             return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]