Skip to content

Commit

Permalink
log error details
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-sahlmann committed Jul 1, 2022
1 parent 0d1ea7b commit 2e318b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mb_netmgmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with mb-netmgmt. If not, see <https://www.gnu.org/licenses/

"""Network Management Protocols for Mountebank"""
__version__ = "0.0.37"
__version__ = "0.0.38"

import os
import subprocess
Expand Down
3 changes: 3 additions & 0 deletions mb_netmgmt/netconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def callback(self, root, raw):
request = {"rpc": to_xml(ele[0])}
self.handle_request(request, attrs["message-id"])

def errback(self, ex):
logging.error(ex)


def wrap_reply(rpc_reply, message_id):
return f'<nc:rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="{message_id}">{rpc_reply}</nc:rpc-reply>'
Expand Down

0 comments on commit 2e318b5

Please sign in to comment.