We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57196e3 commit 5c11477Copy full SHA for 5c11477
file_catalog/__main__.py
@@ -4,6 +4,7 @@
4
import logging
5
import os
6
7
+import coloredlogs # type: ignore[import]
8
from file_catalog.server import Server
9
from file_catalog.config import Config
10
from pprint import pprint
@@ -20,8 +21,9 @@ def main():
20
21
22
config = Config()
23
config.update_from_env()
-
24
- logging.basicConfig(level=('DEBUG' if config['DEBUG'] else 'INFO'))
+
25
+ coloredlogs.install(level=('DEBUG' if config['DEBUG'] else 'INFO'))
26
27
try:
28
Server(config,
29
port=config['FC_PORT'],
requirements.txt
@@ -6,6 +6,7 @@ Babel==2.7.0
certifi==2019.9.11
cffi==1.13.0
chardet==3.0.4
+coloredlogs==14.0
coverage==4.5.4
11
cryptography==3.2
12
docutils==0.15.2
0 commit comments