lib/dexter/logging.rb in pgdexter-0.1.6 vs lib/dexter/logging.rb in pgdexter-0.2.0
- old
+ new
@@ -1,7 +1,7 @@
module Dexter
module Logging
def log(message)
- puts "#{Time.now.iso8601} #{message}"
+ puts "#{Time.now.iso8601} #{message}" unless $log_level == "error"
end
end
end