Skip to content

Commit

Permalink
Add logging in RtmpReader and RtmpWriter.
Browse files Browse the repository at this point in the history
  • Loading branch information
prekageo committed Aug 24, 2012
1 parent 82c4018 commit f841146
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rtmp_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pyamf.util.pure
import rtmp_protocol_base
import socket
import logging

class FileDataTypeMixIn(pyamf.util.pure.DataTypeMixIn):
"""
Expand Down Expand Up @@ -148,6 +149,7 @@ def next(self):
else:
assert False, header

logging.debug('recv %r', ret)
return ret

def read_shared_object_event(self, body_stream, decoder):
Expand Down Expand Up @@ -214,6 +216,7 @@ def flush(self):
self.stream.flush()

def write(self, message):
logging.debug('send %r', message)
""" Encode and write the specified message into the stream. """
datatype = message['msg']
body_stream = pyamf.util.BufferedByteStream()
Expand Down

0 comments on commit f841146

Please sign in to comment.