get rid of some now-obsolete code
* client.common_lib.debug
* abstract_ssh.LoggerFile
Changed {SSHHost,ParamikoHost}.run() default args for std{out,err}_tee to a constant instead of None. This preserves the existing behavior (teeing to the logging module by default), but allows callers to explicitly avoid this teeing if desired, by passing stdout_tee=None.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3293 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/models.py b/frontend/afe/models.py
index 3b1db8c..b071132 100644
--- a/frontend/afe/models.py
+++ b/frontend/afe/models.py
@@ -1,12 +1,10 @@
+import logging
from datetime import datetime
from django.db import models as dbmodels, connection
import common
from autotest_lib.frontend.afe import model_logic
from autotest_lib.frontend import settings, thread_local
from autotest_lib.client.common_lib import enum, host_protections, global_config
-from autotest_lib.client.common_lib import debug
-
-logger = debug.get_logger()
# job options and user preferences
RebootBefore = enum.Enum('Never', 'If dirty', 'Always')
@@ -286,7 +284,7 @@
def on_attribute_changed(self, attribute, old_value):
assert attribute == 'status'
- logger.info(self.hostname + ' -> ' + self.status)
+ logging.info(self.hostname + ' -> ' + self.status)
def enqueue_job(self, job, atomic_group=None, is_template=False):
@@ -855,8 +853,8 @@
def on_attribute_changed(self, attribute, old_value):
assert attribute == 'status'
- logger.info('%s/%d (%d) -> %s' % (self.host, self.job.id, self.id,
- self.status))
+ logging.info('%s/%d (%d) -> %s' % (self.host, self.job.id, self.id,
+ self.status))
def is_meta_host_entry(self):