A little less repr in the scheduler logs.

For the base-runtime module, the current repr here generates pages and
pages of spam in the logs.  The change here should greatly reduce that
spam, and produce something that's much more interesting and readable.
This commit is contained in:
Ralph Bean
2016-10-18 10:20:23 -04:00
parent 0b6ef0dd31
commit f4fd94cc74

View File

@@ -231,8 +231,10 @@ class Poller(threading.Thread):
if name == 'build':
for module_build in query.all():
log.info(" * %r" % module_build)
for component_build in module_build.component_builds:
log.info(" * %r" % component_build)
for i in range(module_build.batch):
n = len([c for c in module_build.component_builds
if c.batch == i ])
log.info(" * %i components in batch %i" % (n, i))
def process_waiting_module_builds(self, session):
log.info("Looking for module builds stuck in the wait state.")