pyradius / pyrad

Python RADIUS Implementation
BSD 3-Clause "New" or "Revised" License
294 stars 186 forks source link

logger error in client_async.py : TypeError: not enough arguments for format string in line 136 #179

Closed tzahari closed 1 year ago

tzahari commented 1 year ago

I run into the following error:

TypeError: not enough arguments for format string
    self.logger.warn('[%s:%d] Ignore invalid reply for id %d. %s', self.server, self.port, reply.id)
Message: '[%s:%d] Ignore invalid reply for id %d. %s'
Arguments: ('127.0.0.1', 1812, 200)

https://github.com/pyradius/pyrad/blob/0e61d984967d720f37e91ea8fc99788dafee37ce/pyrad/client_async.py#L136

The logger needs 4 parameters but only 3 are provided.

Best Regards Thomas