change many str(e) to repr(e) as some exceptions were cryptic
it's often valuable to see the type of the exception (especially as for some exceptions str(e) == '')
This commit is contained in:
@@ -606,7 +606,7 @@ class DeviceMgr(ThreadJob):
|
||||
new_devices = f()
|
||||
except BaseException as e:
|
||||
self.logger.error('custom device enum failed. func {}, error {}'
|
||||
.format(str(f), str(e)))
|
||||
.format(str(f), repr(e)))
|
||||
else:
|
||||
devices.extend(new_devices)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user