Commits

Ryan Dale committed 82c083a

minor simplification

  • Participants
  • Parent commits 28b413a

Comments (0)

Files changed (1)

snakemake/logging.py

 __author__ = "Johannes Köster"
 
 
-
 class ColorizingStreamHandler(logging.StreamHandler):
     _output_lock = Lock()
 
                     time=time.asctime(),
                     **fmt_dict)
             else:
-                    return "{color}{message}{reset}".format(
-                        color=self.COLOR_SEQ % (30 + self.colors[record.levelname]),
-                        message=record.message,
-                        reset=self.RESET_SEQ
-                    )
+                    return "{color}{message}{reset}".format(**fmt_dict)
         if not self.timestamp:
             return record.message
         return "[{time}] {message}".format(