Obsolete
/
ipcd
Archived
3
0
Fork 0

Limits the display to relevant messages.

master
Karchnu 2020-08-24 01:20:27 +02:00
parent 5839ba98b4
commit 0797a1a6e5
1 changed files with 3 additions and 3 deletions

View File

@ -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