Skip to content

Commit 9cb9c2c

Browse files
committed
fix: string error
1 parent b589324 commit 9cb9c2c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

runpod/serverless/modules/rp_job.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,9 @@ async def run_job_generator(
198198
for output_partial in job_output:
199199
log.debug(f"Generator output: {output_partial}", job["id"])
200200
yield {"output": output_partial}
201-
print("HERE")
202201

203202
except Exception as err: # pylint: disable=broad-except
204-
print("HERE2")
205-
log.error(err, job["id"])
203+
log.error(str(err), job["id"])
206204
yield {
207205
"error": f"handler: {str(err)} \ntraceback: {traceback.format_exc()}"
208206
}

runpod/serverless/modules/rp_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def log(self, message, message_level='INFO', job_id=None):
7474
return
7575

7676
# Truncate message over 10MB, remove chunk from the middle
77-
if len(message) > MAX_MESSAGE_LENGTH and message_level != 'ERROR':
77+
if len(message) > MAX_MESSAGE_LENGTH:
7878
half_max_length = MAX_MESSAGE_LENGTH // 2
7979
truncated_amount = len(message) - MAX_MESSAGE_LENGTH
8080
truncation_note = f'\n...TRUNCATED {truncated_amount} CHARACTERS...\n'

0 commit comments

Comments
 (0)