runtime/loglevels.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 03 Jul 2018 17:09:11 +0300
changeset 2241 e762e234181d
parent 1973 cc7a46953471
permissions -rw-r--r--
Add information how to make shelve command work with check_source.sh called from hg hook

and added coresponding flag handling in check_source.sh
#!/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"]