Revision 07b8a2b5 lib/confd/server.py
b/lib/confd/server.py | ||
---|---|---|
100 | 100 |
payload_out = self.PackReply(reply, rsalt) |
101 | 101 |
return payload_out |
102 | 102 |
except errors.ConfdRequestError, err: |
103 |
logging.info('Ignoring broken query from %s:%d: %s' % (ip, port, err))
|
|
103 |
logging.info('Ignoring broken query from %s:%d: %s', ip, port, err)
|
|
104 | 104 |
return None |
105 | 105 |
|
106 | 106 |
def ExtractRequest(self, payload): |
... | ... | |
110 | 110 |
|
111 | 111 |
""" |
112 | 112 |
current_time = time.time() |
113 |
logging.debug("Extracting request with size: %d" % (len(payload)))
|
|
113 |
logging.debug("Extracting request with size: %d", len(payload))
|
|
114 | 114 |
try: |
115 | 115 |
(message, salt) = serializer.LoadSigned(payload, self.hmac_key) |
116 | 116 |
except errors.SignatureError, err: |
... | ... | |
142 | 142 |
@return: tuple of reply and salt to add to the signature |
143 | 143 |
|
144 | 144 |
""" |
145 |
logging.debug("Processing request: %s" % request)
|
|
145 |
logging.debug("Processing request: %s", request)
|
|
146 | 146 |
if request.protocol != constants.CONFD_PROTOCOL_VERSION: |
147 | 147 |
msg = "wrong protocol version %d" % request.protocol |
148 | 148 |
raise errors.ConfdRequestError(msg) |
... | ... | |
165 | 165 |
serial=self.reader.GetConfigSerialNo(), |
166 | 166 |
) |
167 | 167 |
|
168 |
logging.debug("Sending reply: %s" % reply)
|
|
168 |
logging.debug("Sending reply: %s", reply)
|
|
169 | 169 |
|
170 | 170 |
return (reply, rsalt) |
171 | 171 |
|
Also available in: Unified diff