1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

cgroup: demote info logging statement

The info statements are clobbering the "normal" output of devlib users.
This patch demote the logging to debug level. The user can still
log-report these information from the corresponding functions call site.

Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
Patrick Bellasi 2016-02-25 16:54:16 +00:00
parent e2e5e687e9
commit 7112cfef3a

View File

@ -68,7 +68,7 @@ class Controller(object):
self.mount_point),
as_root=True)
self.logger.info('Controller %s mounted under: %s',
self.logger.debug('Controller %s mounted under: %s',
self.kind, self.mount_point)
# Mark this contoller as available
@ -147,7 +147,7 @@ class CGroup(object):
if not create:
return
self.logger.info('Creating cgroup %s', self.directory)
self.logger.debug('Creating cgroup %s', self.directory)
self.target.execute('[ -d {0} ] || mkdir -p {0}'\
.format(self.directory), as_root=True)
@ -237,7 +237,7 @@ class CgroupsModule(Module):
subsys = self.list_subsystems()
for (n, h, c, e) in subsys:
controllers.append(n)
self.logger.info('Available controllers: %s', controllers)
self.logger.debug('Available controllers: %s', controllers)
# Initialize controllers
self.controllers = {}