forked from LBRYCommunity/lbry-sdk
logging
This commit is contained in:
parent
ea7056835f
commit
b34f44c867
1 changed files with 5 additions and 4 deletions
|
@ -1374,10 +1374,11 @@ class LBRYElectrumX(SessionBase):
|
||||||
ptuple, client_min = util.protocol_version(
|
ptuple, client_min = util.protocol_version(
|
||||||
protocol_version, self.PROTOCOL_MIN, self.PROTOCOL_MAX)
|
protocol_version, self.PROTOCOL_MIN, self.PROTOCOL_MAX)
|
||||||
if ptuple is None:
|
if ptuple is None:
|
||||||
if client_min > self.PROTOCOL_MIN:
|
# FIXME: this fills the logs
|
||||||
self.logger.info(f'client requested future protocol version '
|
# if client_min > self.PROTOCOL_MIN:
|
||||||
f'{util.version_string(client_min)} '
|
# self.logger.info(f'client requested future protocol version '
|
||||||
f'- is your software out of date?')
|
# f'{util.version_string(client_min)} '
|
||||||
|
# f'- is your software out of date?')
|
||||||
self.close_after_send = True
|
self.close_after_send = True
|
||||||
raise RPCError(BAD_REQUEST,
|
raise RPCError(BAD_REQUEST,
|
||||||
f'unsupported protocol version: {protocol_version}')
|
f'unsupported protocol version: {protocol_version}')
|
||||||
|
|
Loading…
Reference in a new issue