old_contents: from gpm.utils.console import puts
  from gpm.utils.color import yellow, red, magenta, green
  import sys
  
  class Log(object):
      @classmethod
      def warn(cls, msg):
          puts(yellow("WARN: %s" % msg))
  
      @classmethod
      def fatal(cls, msg):
          puts(red("FATAL: %s" % msg))
          sys.exit(1)
  
      @classmethod
      def debug(cls, msg):
          puts(magenta("DEBUG: %s" % msg))
  
      @classmethod
      def success(cls, msg):
          puts(green("SUCCESS: %s" % msg))
  
      @classmethod
      def puts(cls, msg):
          puts("SUCCESS: %s" % msg)
new_contents: from gpm.utils.console import puts
  from gpm.utils.color import yellow, red, magenta, green
  import sys
  
  class Log(object):
      @classmethod
      def warn(cls, msg):
          puts(yellow("WARN: %s" % msg))
  
      @classmethod
      def fatal(cls, msg):
          msg =red("FATAL: %s" % msg)
          sys.stderr.write(msg)
          e = SystemExit(1)
          e.message = msg
          raise e
  
      @classmethod
      def debug(cls, msg):
          puts(magenta("DEBUG: %s" % msg))
  
      @classmethod
      def success(cls, msg):
          puts(green("SUCCESS: %s" % msg))
  
      @classmethod
      def puts(cls, msg):
          puts("SUCCESS: %s" % msg)
subject: Update Log fatal