Skip to content

Commit

Permalink
donate-cpu-server.py: improved logging in case no newline is found in…
Browse files Browse the repository at this point in the history
… request data
  • Loading branch information
firewave committed Apr 29, 2024
1 parent b790d03 commit bc2b4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/donate-cpu-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def server(server_address_port: int, packages: list, packageIndex: int, resultPa
continue
pos_nl = cmd.find('\n')
if pos_nl < 1:
print_ts('No newline found in data.')
print_ts("No newline found in data: '{}'".format(cmd))
connection.close()
continue
firstLine = cmd[:pos_nl]
Expand Down

0 comments on commit bc2b4b6

Please sign in to comment.