Limits the display to relevant messages.
parent
5839ba98b4
commit
0797a1a6e5
|
@ -25,15 +25,15 @@ class Context
|
||||||
end
|
end
|
||||||
|
|
||||||
def debug(message : String)
|
def debug(message : String)
|
||||||
puts "#{CGREEN}#{message}#{CRESET}"
|
puts "#{CGREEN}#{message}#{CRESET}" if Context.verbosity > 2
|
||||||
end
|
end
|
||||||
|
|
||||||
def info(message : String)
|
def info(message : String)
|
||||||
puts "#{CBLUE}#{message}#{CRESET}"
|
puts "#{CBLUE}#{message}#{CRESET}" if Context.verbosity > 1
|
||||||
end
|
end
|
||||||
|
|
||||||
def danger(message : String)
|
def danger(message : String)
|
||||||
puts "#{CORANGE}#{message}#{CRESET}"
|
puts "#{CORANGE}#{message}#{CRESET}" if Context.verbosity > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue