Commit 80deb2cc authored by Jürgen Haas's avatar Jürgen Haas

ansible-playbooks/ansiblemaster#4 Allow turning off fluentd logging with environment variable

parent 3295e0ee
......@@ -57,6 +57,9 @@ class CallbackModule(CallbackBase):
self.disabled = True
self._display.warning("The required fluent-logger is not installed. "
"pip install fluent-logger")
elif os.getenv('FLUENTD_LOGGING', 'yes') == 'no':
self.disabled = True
self._display.warning("Logging disabled by environment variable.")
else:
logging.basicConfig(level=logging.INFO)
self.logger = logging.getLogger('fluent.ansible')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment