[fix] Add logging `invalid_argument` exception 08/274708/3
authorAdam Michalski <a.michalski2@partner.samsung.com>
Fri, 29 Apr 2022 17:31:13 +0000 (19:31 +0200)
committerAdam Michalski <a.michalski2@partner.samsung.com>
Fri, 6 May 2022 11:40:38 +0000 (13:40 +0200)
Change-Id: Ib4aca9a90aad633e6b9c2ebc832589a476da66a0

sessiond/src/main.cpp

index 844d95052de79daa28f0e0580754958950b3ef75..1aab42574567dd5cf2cda3a836b771d8d0deb9d4 100644 (file)
@@ -502,6 +502,7 @@ struct sessiond_context {
                (self->*(to_call->second))(invocation, std::string_view(sender), parameters);
        } catch (const std::invalid_argument &ex) {
                g_dbus_method_invocation_return_dbus_error(invocation, "org.freedesktop.DBus.Error.InvalidArgs", ex.what());
+               log_exception(ex, sender, method_name);
        } catch (const std::runtime_error &ex) {
                g_dbus_method_invocation_return_dbus_error(invocation, "org.freedesktop.DBus.Error.Failed",
                        (std::string("Unable to complete requested operation: ") + std::string(ex.what())).c_str());