OSDN Git Service

- shogi_server/command.rb: For an unknown error command log, an empty line is no...
authordaigo <beatles@users.sourceforge.jp>
Sun, 25 Jul 2010 05:46:19 +0000 (14:46 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sun, 25 Jul 2010 05:46:19 +0000 (14:46 +0900)
changelog
shogi_server/command.rb

index 6bc7d5e..8a26688 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+2010-07-25  Daigo Moriwaki <daigo at debian dot org>
+
+       * [shogi-server]
+         - shogi_server/command.rb: For an unknown error command log, an
+           empty line is no longer logged.
+
 2010-07-23  Daigo Moriwaki <daigo at debian dot org>
 
        * [shogi-server]
index d661f90..daf501f 100644 (file)
@@ -693,7 +693,7 @@ module ShogiServer
     end
 
     def call
-      msg = "##[ERROR] unknown command %s\n" % [@str]
+      msg = "##[ERROR] unknown command %s\n" % [@str.chomp]
       @player.write_safe(msg)
       log_error(msg)
       return :continue