beremiz
Clone
Summary
Browse
Changes
Graph
Factorized some repeated refresh code into a method, to allow customisation.
2018-02-12, Edouard Tisserant
5def24850a28
Factorized some repeated refresh code into a method, to allow customisation.
#!/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"]