Show More
@@ -787,6 +787,12 b' class socketproxy(object):' | |||
|
787 | 787 | |
|
788 | 788 | |
|
789 | 789 | class baseproxyobserver(object): |
|
790 | def __init__(self, fh, name, logdata, logdataapis): | |
|
791 | self.fh = fh | |
|
792 | self.name = name | |
|
793 | self.logdata = logdata | |
|
794 | self.logdataapis = logdataapis | |
|
795 | ||
|
790 | 796 | def _writedata(self, data): |
|
791 | 797 | if not self.logdata: |
|
792 | 798 | if self.logdataapis: |
@@ -823,10 +829,7 b' class fileobjectobserver(baseproxyobserv' | |||
|
823 | 829 | def __init__( |
|
824 | 830 | self, fh, name, reads=True, writes=True, logdata=False, logdataapis=True |
|
825 | 831 | ): |
|
826 | self.fh = fh | |
|
827 | self.name = name | |
|
828 | self.logdata = logdata | |
|
829 | self.logdataapis = logdataapis | |
|
832 | super(fileobjectobserver, self).__init__(fh, name, logdata, logdataapis) | |
|
830 | 833 | self.reads = reads |
|
831 | 834 | self.writes = writes |
|
832 | 835 | |
@@ -949,13 +952,10 b' class socketobserver(baseproxyobserver):' | |||
|
949 | 952 | logdata=False, |
|
950 | 953 | logdataapis=True, |
|
951 | 954 | ): |
|
952 | self.fh = fh | |
|
953 | self.name = name | |
|
955 | super(socketobserver, self).__init__(fh, name, logdata, logdataapis) | |
|
954 | 956 | self.reads = reads |
|
955 | 957 | self.writes = writes |
|
956 | 958 | self.states = states |
|
957 | self.logdata = logdata | |
|
958 | self.logdataapis = logdataapis | |
|
959 | 959 | |
|
960 | 960 | def makefile(self, res, mode=None, bufsize=None): |
|
961 | 961 | if not self.states: |
General Comments 0
You need to be logged in to leave comments.
Login now