Skip to content
Snippets Groups Projects
Commit 3cea4a01 authored by Seblu's avatar Seblu
Browse files

Debug printing in grey

parent 280652a2
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ from cccli.exception import *
color = {
# regular
"black": "\033[0;30m",
"red": "\033[0;31m",
"green": "\033[0;32m",
"yellow": "\033[0;33m",
......@@ -24,6 +25,7 @@ color = {
"cyan": "\033[0;36m",
"white": "\033[0;37m",
# lighted
"lgrey": "\033[1;30m",
"lred": "\033[1;31m",
"lgreen": "\033[1;32m",
"lyellow": "\033[1;33m",
......@@ -95,7 +97,7 @@ class Printer(object):
def debug(self, message, fd=sys.stderr, nl=os.linesep):
if cccli.debug:
self.out(message, fd, nl)
self.out("%s%s%s"%(color["lgrey"],message,color["reset"]), fd, nl)
def interactive(self, message, fd=sys.stderr, nl=os.linesep):
'''Print only in interactive mode'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment