Skip to content

Commit

Permalink
Fix log decoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jan 31, 2024
1 parent ce0e0d4 commit 6427e2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/MCPClient/lib/client/gearman.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def handle_job(self, task_name, gearman_worker, gearman_job):
task_name = str(task_name)
job_module = self.job_modules[task_name]
logger.debug(
"Gearman job request %s received for %s", gearman_job.unique, task_name
"Gearman job request %s received for %s",
gearman_job.unique.decode(),
task_name,
)

with metrics.task_execution_time_histogram.labels(script_name=task_name).time():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ def add_new_files(job, mets, sip_uuid, sip_dir):

for f in new_files:
# Create amdSecs
job.pyprint("Adding amdSec for", f.currentlocation, "(", str(f.uuid), ")")
job.pyprint(
"Adding amdSec for", f.currentlocation.decode(), "(", str(f.uuid), ")"
)
amdsec, amdid = createmets2.getAMDSec(
job,
fileUUID=str(f.uuid),
Expand Down

0 comments on commit 6427e2a

Please sign in to comment.