Skip to content

Commit

Permalink
log job call values
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 20, 2023
1 parent b0544f8 commit 1f76505
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spalloc_client/protocol_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
from collections import deque
import errno
import json
import logging
import socket
from threading import current_thread, RLock, local
from spinn_utilities.log import FormatAdapter
from spalloc_client._utils import time_left, timed_out, make_timeout

logger = FormatAdapter(logging.getLogger(__name__))


class ProtocolError(Exception):
""" Thrown when a network-level problem occurs during protocol handling.
Expand Down Expand Up @@ -364,6 +368,7 @@ def create_job(self, *args, **kwargs): # pragma: no cover
if "owner" not in kwargs:
raise SpallocServerException(
"owner must be specified for all jobs.")
logger.info("create_job {} {}", str(args), str(kwargs))
return self.call("create_job", *args, **kwargs)

def job_keepalive(self, job_id, timeout=None): # pragma: no cover
Expand Down

0 comments on commit 1f76505

Please sign in to comment.