mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
cgroups: change log level to avoid cluttering caller output
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
parent
c307ffab15
commit
c8f118da4f
@ -150,16 +150,16 @@ class Controller(object):
|
|||||||
raise ValueError('wrong type for "exclude" parameter, '
|
raise ValueError('wrong type for "exclude" parameter, '
|
||||||
'it must be a str or a list')
|
'it must be a str or a list')
|
||||||
|
|
||||||
logging.info('Moving all tasks into %s', dest)
|
logging.debug('Moving all tasks into %s', dest)
|
||||||
|
|
||||||
# Build list of tasks to exclude
|
# Build list of tasks to exclude
|
||||||
grep_filters = ''
|
grep_filters = ''
|
||||||
for comm in exclude:
|
for comm in exclude:
|
||||||
grep_filters += '-e "{}" '.format(comm)
|
grep_filters += '-e "{}" '.format(comm)
|
||||||
logging.debug('Using grep filter: %s', grep_filters)
|
logging.debug(' using grep filter: %s', grep_filters)
|
||||||
if grep_filters != '':
|
if grep_filters != '':
|
||||||
logging.info('Excluding tasks which name matches:')
|
logging.debug(' excluding tasks which name matches:')
|
||||||
logging.info('%s', ','.join(exclude))
|
logging.debug(' %s', ', '.join(exclude))
|
||||||
|
|
||||||
for cgroup in self._cgroups:
|
for cgroup in self._cgroups:
|
||||||
if cgroup != dest:
|
if cgroup != dest:
|
||||||
@ -453,11 +453,11 @@ class CgroupsModule(Module):
|
|||||||
# Move all tasks into the freezer group
|
# Move all tasks into the freezer group
|
||||||
freezer.move_all_tasks_to('/DEVLIB_FREEZER', exclude)
|
freezer.move_all_tasks_to('/DEVLIB_FREEZER', exclude)
|
||||||
|
|
||||||
logging.info("Non freezable tasks:")
|
# Get list of not frozen tasks, which is reported as output
|
||||||
tasks = freezer.tasks('/')
|
tasks = freezer.tasks('/')
|
||||||
for tid in tasks:
|
|
||||||
logging.info("%5d: %s", tid, tasks[tid])
|
|
||||||
|
|
||||||
# Freeze all tasks
|
# Freeze all tasks
|
||||||
freezer_cg.set(state='FROZEN')
|
freezer_cg.set(state='FROZEN')
|
||||||
|
|
||||||
|
return tasks
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user