mirror of
https://git.deluge-torrent.org/deluge
synced 2025-10-02 15:08:36 +00:00
[Core][RPC] Log authentication error on user/password
Log authentication error due to wrong username or password sent by client. Closes: https://github.com/deluge-torrent/deluge/pull/475
This commit is contained in:
parent
c5ce83eb2b
commit
22e9adbc31
1 changed files with 9 additions and 0 deletions
|
@ -28,6 +28,7 @@ from deluge.core.authmanager import (
|
|||
)
|
||||
from deluge.crypto_utils import check_ssl_keys, get_context_factory
|
||||
from deluge.error import (
|
||||
BadLoginError,
|
||||
DelugeError,
|
||||
IncompatibleClient,
|
||||
NotAuthorizedError,
|
||||
|
@ -281,6 +282,14 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
|
|||
send_error()
|
||||
if not isinstance(ex, _ClientSideRecreateError):
|
||||
log.exception(ex)
|
||||
if isinstance(ex, BadLoginError):
|
||||
peer = self.transport.getPeer()
|
||||
log.error(
|
||||
'Deluge client authentication error made from: %s:%s (%s)',
|
||||
peer.host,
|
||||
peer.port,
|
||||
str(ex),
|
||||
)
|
||||
else:
|
||||
self.sendData((RPC_RESPONSE, request_id, (ret)))
|
||||
if not ret:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue