Code Duplication    Length = 3-5 lines in 2 locations

lib/rapis/logger.rb 2 locations

@@ 57-61 (lines=5) @@
54
    def fatal(msg)
55
      super { Rapis::TermColor.red(msg) }
56
    end
57
58
    def error(msg, backtrace, progname = nil, method_name = nil)
59
      super(progname) do
60
        { method_name: method_name, message: msg, backtrace: backtrace }
61
      end
62
    end
63
  end
64
end
@@ 41-43 (lines=3) @@
38
39
      self.level = Logger::INFO
40
    end
41
42
    def debug(msg, progname = nil, method_name = nil)
43
      super(progname) { { method_name: method_name, message: msg } }
44
    end
45
46
    def info(msg)