OSDN Git Service

Show revision in a start up messeage.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 22 Apr 2007 08:09:02 +0000 (08:09 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 22 Apr 2007 08:09:02 +0000 (08:09 +0000)
changelog
shogi-server

index d5c8e45..a5fe63a 100644 (file)
--- a/changelog
+++ b/changelog
@@ -6,6 +6,7 @@
            because it is only available for CSA's official testing server and does
            not belong to the CSA standard protocol.  Therefor, when clients receive
            `CHALLENGE ACCEPTED' from this server, they must ignore it.
+         - Show revision in a start up messeage.
 
 2007-04-01  Daigo Moriwaki <daigo at debian dot org>
 
index f236f9c..96d3349 100755 (executable)
@@ -2073,8 +2073,8 @@ def main
 
   server = WEBrick::GenericServer.new(config)
   ["INT", "TERM"].each {|signal| trap(signal){ server.shutdown } }
-  $stderr.puts("server started as a deamon") if $options["daemon"] 
-  log_message("server started")
+  $stderr.puts("server started as a deamon [Revision: #{ShogiServer::Revision}]") if $options["daemon"] 
+  log_message("server started [Revision: #{ShogiServer::Revision}]")
 
   server.start do |client|
       # client.sync = true # this is already set in WEBrick