shogi-server source
Revision | 3bb5010a22ea25d3710ec3e8e08af98b02f3c1d5 (tree) |
---|---|
Zeit | 2013-12-08 21:22:04 |
Autor | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
Changed log messages and levels.
@@ -1,8 +1,9 @@ | ||
1 | 1 | 2013-12-08 Daigo Moriwaki <daigo at debian dot org> |
2 | 2 | |
3 | 3 | * [shogi-server] |
4 | - - shogi-server/shogi_server/pairing.rb: Modified comment for | |
5 | - LeastDiff match. | |
4 | + - shogi-server/shogi_server/pairing.rb: | |
5 | + - Modified comment for LeastDiff match. | |
6 | + - Changed log messages and levels. | |
6 | 7 | |
7 | 8 | 2013-12-07 Daigo Moriwaki <daigo at debian dot org> |
8 | 9 |
@@ -144,7 +144,7 @@ module ShogiServer | ||
144 | 144 | def match(players) |
145 | 145 | super |
146 | 146 | if players.size < 2 |
147 | - log_warning("Floodgate: There should be more than one player (%d)." % [players.size]) | |
147 | + log_message("Floodgate: There are less than two players: %d" % [players.size]) | |
148 | 148 | return |
149 | 149 | end |
150 | 150 | if players.size.odd? |
@@ -167,7 +167,7 @@ module ShogiServer | ||
167 | 167 | super |
168 | 168 | log_players(players) |
169 | 169 | if players.size < 2 |
170 | - log_warning("Floodgate: There should be more than one player (%d)." % [players.size]) | |
170 | + log_message("Floodgate: There are less than two players: %d" % [players.size]) | |
171 | 171 | return |
172 | 172 | elsif players.size == 2 |
173 | 173 | start_game_shuffle(players) |