本文整理汇总了Python中bacpypes.debugging.ModuleLogger.exception方法的典型用法代码示例。如果您正苦于以下问题:Python ModuleLogger.exception方法的具体用法?Python ModuleLogger.exception怎么用?Python ModuleLogger.exception使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bacpypes.debugging.ModuleLogger
的用法示例。
在下文中一共展示了ModuleLogger.exception方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: read_prop
# 需要导入模块: from bacpypes.debugging import ModuleLogger [as 别名]
# 或者: from bacpypes.debugging.ModuleLogger import exception [as 别名]
if obj_type != 'analogInput':
try:
default_value = read_prop(this_application, target_address, obj_type, index, "relinquishDefault")
object_units_details += ' (default {default})'.format(default=default_value)
object_units_details = object_units_details.strip()
#writable = 'TRUE'
except TypeError:
pass
_log.debug(' object units = ' + str(object_units))
_log.debug(' object units details = ' + str(object_units_details))
_log.debug(' object notes = ' + object_notes)
results = {}
results['Point Name'] = results['PNNL Point Name'] = object_name
results['Units'] = object_units
results['Unit Details'] = object_units_details
results['BACnet Object Type'] = obj_type
results['Property'] = 'presentValue'
results['Writable'] = writable
results['Index'] = index
results['Notes'] = object_notes
config_writer.writerow(results)
except Exception, e:
_log.exception("an error has occurred: %s", e)
finally:
_log.debug("finally")