From 7112cfef3ad99a677c8cdae96b2c29c909ed859a Mon Sep 17 00:00:00 2001 From: Patrick Bellasi Date: Thu, 25 Feb 2016 16:54:16 +0000 Subject: [PATCH] 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 --- devlib/module/cgroups.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devlib/module/cgroups.py b/devlib/module/cgroups.py index ce10d01..1d7a24a 100644 --- a/devlib/module/cgroups.py +++ b/devlib/module/cgroups.py @@ -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 = {}