diff options
author | Trung N Tran <trung.tran@ettus.com> | 2018-03-29 16:12:42 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-03-30 11:05:53 -0700 |
commit | 4e34d35ec47636f5339b0bec8656a485c9200a5c (patch) | |
tree | c48b08f2a6c586a6f9d375a95e96f29dadec9e13 /mpm | |
parent | 4ae40a8cb7ec592202faa87b3170d7cd1a3fb90a (diff) | |
download | uhd-4e34d35ec47636f5339b0bec8656a485c9200a5c.tar.gz uhd-4e34d35ec47636f5339b0bec8656a485c9200a5c.tar.bz2 uhd-4e34d35ec47636f5339b0bec8656a485c9200a5c.zip |
mpm: improve logging on exception
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/rpc_server.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py index e1803918d..27c049d69 100644 --- a/mpm/python/usrp_mpm/rpc_server.py +++ b/mpm/python/usrp_mpm/rpc_server.py @@ -8,6 +8,7 @@ Implemented RPC Servers """ from __future__ import print_function +import traceback import copy from random import choice from string import ascii_letters, digits @@ -181,8 +182,8 @@ class MPMServer(RPCServer): return function(*args) except Exception as ex: self.log.error( - "Uncaught exception in method %s: %s", - command, str(ex) + "Uncaught exception in method %s :%s \n %s ", + command, str(ex), traceback.format_exc() ) self._last_error = str(ex) raise @@ -206,8 +207,8 @@ class MPMServer(RPCServer): return function(*args) except Exception as ex: self.log.error( - "Uncaught exception in method %s: %s", - command, str(ex) + "Uncaught exception in method %s :%s\n %s ", + command, str(ex), traceback.format_exc() ) self._last_error = str(ex) raise |