beremiz
Clone
Summary
Browse
Changes
Graph
Modbus plugin: fix bug: was checking user configuration against wrong limits
2020-06-07, Mario de Sousa
a26a8e182190
Modbus plugin: fix bug: was checking user configuration against wrong limits
#!/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"]