Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
edf70531
Commit
edf70531
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logging to backend SocketServer message processing
parent
fb33730a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comm.py
vidai/comm.py
+4
-1
No files found.
vidai/comm.py
View file @
edf70531
...
@@ -153,6 +153,7 @@ class SocketServer:
...
@@ -153,6 +153,7 @@ class SocketServer:
messages
=
decoded
.
split
(
'
\n
'
)
messages
=
decoded
.
split
(
'
\n
'
)
for
msg_str
in
messages
:
for
msg_str
in
messages
:
if
msg_str
.
strip
():
if
msg_str
.
strip
():
print
(
f
"DEBUG: SocketServer processing message: {repr(msg_str)}"
)
try
:
try
:
msg_data
=
json
.
loads
(
msg_str
)
msg_data
=
json
.
loads
(
msg_str
)
message
=
Message
(
message
=
Message
(
...
@@ -160,6 +161,7 @@ class SocketServer:
...
@@ -160,6 +161,7 @@ class SocketServer:
msg_id
=
msg_data
[
'msg_id'
],
msg_id
=
msg_data
[
'msg_id'
],
data
=
msg_data
[
'data'
]
data
=
msg_data
[
'data'
]
)
)
print
(
f
"DEBUG: SocketServer parsed message: {message}"
)
response
=
self
.
message_handler
(
message
)
response
=
self
.
message_handler
(
message
)
if
response
:
if
response
:
resp_data
=
json
.
dumps
({
resp_data
=
json
.
dumps
({
...
@@ -168,7 +170,8 @@ class SocketServer:
...
@@ -168,7 +170,8 @@ class SocketServer:
'data'
:
response
.
data
'data'
:
response
.
data
})
.
encode
(
'utf-8'
)
})
.
encode
(
'utf-8'
)
client_sock
.
sendall
(
resp_data
+
b
'
\n
'
)
client_sock
.
sendall
(
resp_data
+
b
'
\n
'
)
except
json
.
JSONDecodeError
:
except
json
.
JSONDecodeError
as
e
:
print
(
f
"DEBUG: SocketServer JSON decode error: {e}"
)
pass
pass
except
:
except
:
pass
pass
...
...
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