Made error logging entries red in the terminal

This commit is contained in:
Brad Warren
2015-09-25 13:26:45 -07:00
parent 5cc9061413
commit fe810020c4
5 changed files with 95 additions and 4 deletions
+2 -1
View File
@@ -24,6 +24,7 @@ from acme import jose
import letsencrypt
from letsencrypt import account
from letsencrypt import colored_logging
from letsencrypt import configuration
from letsencrypt import constants
from letsencrypt import client
@@ -786,7 +787,7 @@ def _setup_logging(args):
level = -args.verbose_count * 10
fmt = "%(asctime)s:%(levelname)s:%(name)s:%(message)s"
if args.text_mode:
handler = logging.StreamHandler()
handler = colored_logging.StreamHandler()
handler.setFormatter(logging.Formatter(fmt))
else:
handler = log.DialogHandler()