runtime/loglevels.py
author Edouard Tisserant <edouard@beremiz.fr>
Wed, 26 Feb 2025 16:24:35 +0100 (2 months ago)
changeset 4115 a734a4d3ef23
parent 1973 cc7a46953471
permissions -rw-r--r--
python runtime: Wamp client now parses PSK file to extract secret from it instead of using the whole file as a secret.
#!/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"]