convert a few straggling print statements in the scheduler code to logging calls
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3235 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/status_server.py b/scheduler/status_server.py
index 0d9198d..3d618dc 100644
--- a/scheduler/status_server.py
+++ b/scheduler/status_server.py
@@ -1,4 +1,4 @@
-import os, BaseHTTPServer, cgi, threading, urllib, fcntl
+import os, BaseHTTPServer, cgi, threading, urllib, fcntl, logging
import common
from autotest_lib.scheduler import scheduler_config
@@ -101,14 +101,14 @@
def shutdown(self):
if self._shutting_down:
return
- print 'Shutting down server...'
+ logging.info('Shutting down server...')
self._shutting_down = True
# make one last request to awaken the server thread and make it exit
urllib.urlopen('http://localhost:%s' % _PORT)
def _serve_until_shutdown(self):
- print 'Status server running on', self.server_address
+ logging.info('Status server running on %s', self.server_address)
while not self._shutting_down:
self.handle_request()