Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
6bd4c5ea
Commit
6bd4c5ea
authored
Mar 08, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Ansible logging update (#111)
parent
016d47aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
ansible_mitogen/logging.py
ansible_mitogen/logging.py
+0
-2
ansible_mitogen/strategy.py
ansible_mitogen/strategy.py
+2
-0
docs/ansible.rst
docs/ansible.rst
+12
-2
No files found.
ansible_mitogen/logging.py
View file @
6bd4c5ea
...
...
@@ -69,11 +69,9 @@ def setup():
"""
display
=
find_display
()
mitogen
.
core
.
LOG
.
propagate
=
False
mitogen
.
core
.
LOG
.
handlers
=
[
Handler
(
display
.
v
)]
mitogen
.
core
.
LOG
.
setLevel
(
logging
.
DEBUG
)
mitogen
.
core
.
IOLOG
.
propagate
=
False
mitogen
.
core
.
IOLOG
.
handlers
=
[
Handler
(
display
.
vvvv
)]
if
display
.
verbosity
>
3
:
mitogen
.
core
.
IOLOG
.
setLevel
(
logging
.
DEBUG
)
ansible_mitogen/strategy.py
View file @
6bd4c5ea
...
...
@@ -158,6 +158,8 @@ class StrategyModule(ansible.plugins.strategy.linear.StrategyModule):
Construct a Router, Broker, and mitogen.unix listener
"""
self
.
router
=
mitogen
.
master
.
Router
()
if
'MITOGEN_ROUTER_DEBUG'
in
os
.
environ
:
self
.
router
.
enable_debug
()
self
.
router
.
responder
.
whitelist_prefix
(
'ansible'
)
self
.
router
.
responder
.
whitelist_prefix
(
'ansible_mitogen'
)
self
.
listener
=
mitogen
.
unix
.
Listener
(
self
.
router
)
...
...
docs/ansible.rst
View file @
6bd4c5ea
...
...
@@ -232,8 +232,18 @@ Sudo Variables
Debugging
---------
See :ref:`logging-env-vars` in the Getting Started guide for environment
variables that activate debug logging.
Mitogen's logs are integrated into Ansible's display framework. Basic high
level debug logs are produced with ``-vvv``, with logging of all IO activity on
the controller machine with ``-vvvv``.
It is not possible to receive IO activity logs from children spawned on remote
machines, as the processs of receiving those woulds would in turn generate more
logs To receive a complete trace of every process, file-based logging is
required, which can be enabled by setting ``MITOGEN_ROUTER_DEBUG=1`` in your
environment.
When file-based logging is enabled, one file per context will be created on the
target machines, as ``/tmp/mitogen.<pid>.log``.
Implementation Notes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment