Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4bd68abf
Commit
4bd68abf
authored
Jul 21, 1999
by
Ken Manheimer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the client proper tracebacks, when they occur.
parent
416c8faf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ZServer/medusa/monitor.py
ZServer/medusa/monitor.py
+5
-1
lib/python/ZServer/medusa/monitor.py
lib/python/ZServer/medusa/monitor.py
+5
-1
No files found.
ZServer/medusa/monitor.py
View file @
4bd68abf
...
...
@@ -5,13 +5,14 @@
# python REPL channel.
#
RCS_ID
=
'$Id: monitor.py,v 1.
4 1999/07/21 16:50:57
klm Exp $'
RCS_ID
=
'$Id: monitor.py,v 1.
5 1999/07/21 17:15:53
klm Exp $'
import
md5
import
socket
import
string
import
sys
import
time
import
traceback
VERSION
=
string
.
split
(
RCS_ID
)[
2
]
...
...
@@ -120,8 +121,11 @@ class monitor_channel (asynchat.async_chat):
except
:
method
=
'exception'
self
.
multi_line
=
[]
t
,
v
,
tb
=
sys
.
exc_info
()
(
file
,
fun
,
line
),
t
,
v
,
tbinfo
=
asyncore
.
compact_traceback
()
self
.
log_info
(
'%s %s %s'
%
(
t
,
v
,
tbinfo
),
'warning'
)
traceback
.
print_exception
(
t
,
v
,
tb
)
del
tb
finally
:
sys
.
stdout
=
oldout
sys
.
stderr
=
olderr
...
...
lib/python/ZServer/medusa/monitor.py
View file @
4bd68abf
...
...
@@ -5,13 +5,14 @@
# python REPL channel.
#
RCS_ID
=
'$Id: monitor.py,v 1.
4 1999/07/21 16:50:57
klm Exp $'
RCS_ID
=
'$Id: monitor.py,v 1.
5 1999/07/21 17:15:53
klm Exp $'
import
md5
import
socket
import
string
import
sys
import
time
import
traceback
VERSION
=
string
.
split
(
RCS_ID
)[
2
]
...
...
@@ -120,8 +121,11 @@ class monitor_channel (asynchat.async_chat):
except
:
method
=
'exception'
self
.
multi_line
=
[]
t
,
v
,
tb
=
sys
.
exc_info
()
(
file
,
fun
,
line
),
t
,
v
,
tbinfo
=
asyncore
.
compact_traceback
()
self
.
log_info
(
'%s %s %s'
%
(
t
,
v
,
tbinfo
),
'warning'
)
traceback
.
print_exception
(
t
,
v
,
tb
)
del
tb
finally
:
sys
.
stdout
=
oldout
sys
.
stderr
=
olderr
...
...
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