runtime/loglevels.py
author etisserant <edouard.tisserant@gmail.com>
Mon, 16 May 2022 07:00:21 +0200
changeset 3457 02c7b758fa9b
parent 1973 cc7a46953471
permissions -rw-r--r--
Tests: remove -it from docker invocation

Workaround "The input device is not a TTY" error on Github Action.
#!/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"]