diff options
author | showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-06-10 00:13:33 +0000 |
---|---|---|
committer | showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-06-10 00:13:33 +0000 |
commit | 0ca4f265b860852a3f685423245709c2abc84c1a (patch) | |
tree | 1b04a2dc63c74dac9eb5252c69d78c8adc04405e /scheduler/status_server.py | |
parent | 07dede0649519e37938ee3505b680da050aaf77d (diff) |
convert a few straggling print statements in the scheduler code to logging calls
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@3235 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'scheduler/status_server.py')
-rw-r--r-- | scheduler/status_server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scheduler/status_server.py b/scheduler/status_server.py index 0d9198db..3d618dc9 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 @@ class StatusServer(BaseHTTPServer.HTTPServer): 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() |