Skip to content
Snippets Groups Projects
Commit 80deb2cc authored by jurgenhaas's avatar jurgenhaas
Browse files

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

parent 3295e0ee
Branches
Tags
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment