Reducing logging.

This commit is contained in:
Joshua Harlow
2012-02-07 17:56:41 -08:00
parent a02aa73394
commit 7b1376a7d4

View File

@@ -66,7 +66,7 @@ class ForkRunner(object):
killed = True
break
else:
LOG.info("Sleeping for %s seconds before next attempt to kill pid %s" % (SLEEP_TIME, pid))
LOG.debug("Sleeping for %s seconds before next attempt to kill pid %s" % (SLEEP_TIME, pid))
time.sleep(SLEEP_TIME)
return (killed, attempts)
@@ -84,14 +84,14 @@ class ForkRunner(object):
(killed, attempts) = self._stop_pid(pid)
#trash the files
if killed:
LOG.info("Killed pid %s after %s attempts" % (pid, attempts))
LOG.info("Removing pid file %s" % (pid_file))
LOG.debug("Killed pid %s after %s attempts" % (pid, attempts))
LOG.debug("Removing pid file %s" % (pid_file))
sh.unlink(pid_file)
LOG.info("Removing stderr file %s" % (stderr_fn))
LOG.debug("Removing stderr file %s" % (stderr_fn))
sh.unlink(stderr_fn)
LOG.info("Removing stdout file %s" % (stdout_fn))
LOG.debug("Removing stdout file %s" % (stdout_fn))
sh.unlink(stdout_fn)
LOG.info("Removing %s trace file %s" % (name, trace_fn))
LOG.debug("Removing %s trace file %s" % (name, trace_fn))
sh.unlink(trace_fn)
else:
msg = "Could not stop %s after %s attempts" % (name, attempts)