Suppressing appoptics_return ERROR messages in the logs
Version: Salt Open 3001
When using Salt Open 3001, you may see repeated error messages about the appoptics_return
module.
2020-06-18 19:53:57,424 [salt.loaded.int.returner.appoptics_return:100 ][ERROR ][50] The appoptics_return module couldn't load the appoptics_metrics module.
2020-06-18 19:53:57,424 [salt.loaded.int.returner.appoptics_return:102 ][ERROR ][50] please make sure it is installed and is in the PYTHON_PATH.
If you are not using this returner, you can suppress these error messages using the log_granular_levels
option:
log_granular_levels:
'salt.loaded.int.returner.appoptics_return': 'critical'
The salt master should be restarted after adding the configuration, e.g.:
sudo systemctl restart salt-master
A fix has been proposed in https://github.com/saltstack/salt/pull/57723.