diff options
-rw-r--r-- | module/obmc/wsgi/apps/rest_dbus.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index f52032a..bf7db41 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -1600,6 +1600,9 @@ class LoggingPlugin(object): self.logging_enabled = None self.bus = dbus.SystemBus() self.dbus_path = '/xyz/openbmc_project/logging/rest_api_logs' + self.no_json = [ + '/xyz/openbmc_project/user/ldap/action/CreateConfig' + ] self.bus.add_signal_receiver( self.properties_changed_handler, dbus_interface=dbus.PROPERTIES_IFACE, @@ -1616,6 +1619,8 @@ class LoggingPlugin(object): json = request.json if self.suppress_json_logging: json = None + elif any(substring in request.url for substring in self.no_json): + json = None session = self.app.session_handler.get_session_from_cookie() user = None if "/login" in request.url: |