Commit 3cea4a01 authored by Seblu's avatar Seblu
Browse files

Debug printing in grey

parent 280652a2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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'''