beremiz
Clone
Summary
Browse
Changes
Graph
modbus_plugin: generate nicer error message, instead of a traceback
2020-05-28, Mario de Sousa
e4ab768170f9
modbus_plugin: generate nicer error message, instead of a traceback
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# See COPYING.Runtime file for copyrights details.
LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]