lib/chronicle/etl/logger.rb in chronicle-etl-0.5.5 vs lib/chronicle/etl/logger.rb in chronicle-etl-0.6.1
- old
+ new
@@ -12,16 +12,16 @@
attr_accessor :log_level
@log_level = INFO
- def output message, level
+ def output(message, level)
return unless level >= @log_level
if @ui_element
@ui_element.log(message)
else
- $stderr.puts(message)
+ warn(message)
end
end
def fatal(message)
output(message, FATAL)