OSDN Git Service

Added a new command line to specify floodgate_history.yaml file.
[shogi-server/shogi-server.git] / shogi_server.rb
index 4b1b39a..800656f 100644 (file)
@@ -34,7 +34,6 @@ require 'shogi_server/game'
 require 'shogi_server/league'
 require 'shogi_server/login'
 require 'shogi_server/piece'
-require 'shogi_server/pieceky'
 require 'shogi_server/player'
 require 'shogi_server/timeout_queue'
 require 'shogi_server/usi'
@@ -66,6 +65,11 @@ end
 module_function :reload
 
 class Formatter < ::Logger::Formatter
+  def initialize
+    super
+    @datetime_format = "%Y-%m-%dT%H:%M:%S"
+  end
+
   def call(severity, time, progname, msg)
     %!%s [%s] %s\n! % [format_datetime(time), severity, msg2str(msg)]
   end