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
cb620500
Commit
cb620500
authored
Mar 16, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #131: log stack and PPID with MITOGEN_ROUTER_DEBUG=1
parent
0f5a31fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mitogen/core.py
mitogen/core.py
+2
-0
No files found.
mitogen/core.py
View file @
cb620500
...
...
@@ -217,6 +217,8 @@ def enable_debug_logging():
root
.
setLevel
(
logging
.
DEBUG
)
IOLOG
.
setLevel
(
logging
.
DEBUG
)
fp
=
open
(
'/tmp/mitogen.%s.log'
%
(
os
.
getpid
(),),
'w'
,
1
)
fp
.
write
(
'Parent PID: %s
\
n
'
%
(
os
.
getppid
(),))
fp
.
write
(
'Created by:
\
n
\
n
%s
\
n
\
n
'
%
(
''
.
join
(
traceback
.
format_stack
()),))
set_cloexec
(
fp
.
fileno
())
handler
=
logging
.
StreamHandler
(
fp
)
handler
.
formatter
=
logging
.
Formatter
(
...
...
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