Skip to content

Commit 85d7d1a

Browse files
committed
Disabled a debug statement causing stacktraces even without debug
1 parent 6347fb2 commit 85d7d1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyrdp/mitm/DeviceRedirectionMITM.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def handleCreateResponse(self, request: DeviceCreateRequestPDU, response: Device
218218
:param request: the device create request
219219
:param response: the device IO response to the request
220220
"""
221-
self.log.debug("Handling a DeviceCreateRequest. Path: '%(path)s'", {"path": request.path})
221+
# The following will sometimes stacktrace because request is a
222+
# DeviceIORequestPDU without a path attribute instead of DeviceCreateRequestPDU
223+
#self.log.debug("Handling a DeviceCreateRequest. Path: '%(path)s'", {"path": request.path})
222224

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

0 commit comments

Comments
 (0)