提交 e3076a6e 编写于 作者: N Nicolargo

Add Warning message if a [monitor] section is detected in the Glances configuration file

上级 d6ada6b2
......@@ -56,6 +56,10 @@ class AmpsList(object):
if self.config is None:
return False
# Display a warning (deprecated) message if the monitor section exist
if "monitor" in self.config.sections():
logger.warning("A deprecated [monitor] section exists in the Glances configuration file. You should use the new Applications Monitoring Process module instead (http://glances.readthedocs.io/en/develop/aoa/amps.html).")
header = "glances_"
# For each AMP scrip, call the load_config method
for s in self.config.sections():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册