Skip to content

Commit

Permalink
Disabled a debug statement causing stacktraces even without debug
Browse files Browse the repository at this point in the history
  • Loading branch information
obilodeau committed Nov 17, 2022
1 parent 6347fb2 commit 85d7d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyrdp/mitm/DeviceRedirectionMITM.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ def handleCreateResponse(self, request: DeviceCreateRequestPDU, response: Device
:param request: the device create request
:param response: the device IO response to the request
"""
self.log.debug("Handling a DeviceCreateRequest. Path: '%(path)s'", {"path": request.path})
# The following will sometimes stacktrace because request is a
# DeviceIORequestPDU without a path attribute instead of DeviceCreateRequestPDU
#self.log.debug("Handling a DeviceCreateRequest. Path: '%(path)s'", {"path": request.path})

isFileRead = request.desiredAccess & (FileAccessMask.GENERIC_READ | FileAccessMask.FILE_READ_DATA) != 0
isDirectory = request.createOptions & CreateOption.FILE_NON_DIRECTORY_FILE == 0
Expand Down

0 comments on commit 85d7d1a

Please sign in to comment.