Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
b70bef7f
Commit
b70bef7f
authored
Sep 27, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the zrpc.log module's log() method so the process identity is
logged with the message_output.
parent
3b4b2508
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+6
-4
No files found.
src/ZEO/zrpc/smac.py
View file @
b70bef7f
...
...
@@ -13,14 +13,16 @@
##############################################################################
"""Sized message async connections
$Id: smac.py,v 1.2
7 2002/09/16 16:57:11
gvanrossum Exp $
$Id: smac.py,v 1.2
8 2002/09/27 19:14:16
gvanrossum Exp $
"""
import
asyncore
,
struct
from
ZEO.Exceptions
import
Disconnected
from
zLOG
import
LOG
,
TRACE
,
ERROR
,
INFO
,
BLATHER
import
zLOG
from
types
import
StringType
from
ZEO.zrpc.log
import
log
import
socket
,
errno
# Use the dictionary to make sure we get the minimum number of errno
...
...
@@ -60,7 +62,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
if
debug
is
not
None
:
self
.
_debug
=
debug
elif
not
hasattr
(
self
,
'_debug'
):
self
.
_debug
=
__debug__
and
'smac'
self
.
_debug
=
__debug__
self
.
__state
=
None
self
.
__inp
=
None
# None, a single String, or a list
self
.
__input_len
=
0
...
...
@@ -179,7 +181,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
m
=
message
[:
40
]
+
' ...'
else
:
m
=
message
LOG
(
self
.
_debug
,
TRACE
,
'message_output %s'
%
`m`
)
log
(
'smac message_output %s'
%
`m`
,
level
=
zLOG
.
TRACE
)
if
self
.
__closed
:
raise
Disconnected
,
(
...
...
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