Total Complexity | 0 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | """Program defaults.""" |
||
2 | |||
3 | 1 | import logging |
|
4 | 1 | import os |
|
5 | |||
6 | |||
7 | 1 | # Cache settings |
|
8 | CACHE = os.path.expanduser(os.getenv('GITMAN_CACHE', "~/.gitcache")) |
||
9 | CACHE_DISABLE = bool(os.getenv('GITMAN_CACHE_DISABLE')) |
||
10 | 1 | ||
11 | 1 | # Logging settings |
|
12 | 1 | DEFAULT_LOGGING_FORMAT = "%(message)s" |
|
13 | 1 | LEVELED_LOGGING_FORMAT = "%(levelname)s: %(message)s" |
|
14 | 1 | VERBOSE_LOGGING_FORMAT = "[%(levelname)-8s] %(message)s" |
|
15 | 1 | VERBOSE2_LOGGING_FORMAT = "[%(levelname)-8s] (%(name)s @%(lineno)4d) %(message)s" |
|
16 | 1 | QUIET_LOGGING_LEVEL = logging.ERROR |
|
17 | 1 | DEFAULT_LOGGING_LEVEL = logging.WARNING |
|
18 | 1 | VERBOSE_LOGGING_LEVEL = logging.INFO |
|
19 | VERBOSE2_LOGGING_LEVEL = logging.DEBUG |
||
20 | LOGGING_DATEFMT = "%Y-%m-%d %H:%M" |
||
21 |