Commit fd989219 authored by 神楽坂玲奈's avatar 神楽坂玲奈

log

parent 4114ad3b
...@@ -4,8 +4,6 @@ require 'logger' ...@@ -4,8 +4,6 @@ require 'logger'
module Log module Log
class << self class << self
attr_accessor :logger attr_accessor :logger
attr_accessor :out
end end
self.logger = Logger.new STDERR self.logger = Logger.new STDERR
self.out = Logger.new STDOUR
end end
...@@ -109,7 +109,7 @@ module MSETranslator ...@@ -109,7 +109,7 @@ module MSETranslator
end end
Log.logger.info("Finished a pack named data#{key}-#{Global.language}.mse-set with following #{clear_data.count} cards:") Log.logger.info("Finished a pack named data#{key}-#{Global.language}.mse-set with following #{clear_data.count} cards:")
clear_data.each {|card| Log.logger.info(YGOCoreJudgers.get_log_str(card))} clear_data.each {|card| Log.logger.info(YGOCoreJudgers.get_log_str(card))}
Log.out.info "#{key}-#{Global.language}.mse-set" puts "#{key}-#{Global.language}.mse-set"
end end
def generate_mse_all(datas) def generate_mse_all(datas)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment