提交 26eb9c30 编写于 作者: A Amador Pahim 提交者: Cleber Rosa

sysinfo: debug message when files are not present

We do log the lack of permissions, but we don't log the missing files.
Let's fix that.
Signed-off-by: NAmador Pahim <apahim@redhat.com>
上级 7e7d16b9
......@@ -102,6 +102,8 @@ class Logfile(Collectible):
shutil.copyfile(self.path, os.path.join(logdir, self.logf))
except IOError:
log.debug("Not logging %s (lack of permissions)", self.path)
else:
log.debug("Not logging %s (file does not exist)", self.path)
class Command(Collectible):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册