Fixed output for Python 3.7
This commit is contained in:
parent
ca8d6a4cd4
commit
f7ec9aed2f
1 changed files with 3 additions and 3 deletions
|
|
@ -314,10 +314,10 @@ class ClientConnection(threading.Thread):
|
|||
password = parse_password_from_authentication_packet(data)
|
||||
if self.connect_to_actual_backend(password):
|
||||
captured_uri = 'postgres://%(user)s:%(password)s@%(host)s:5432/%(database)s' % {
|
||||
'user': self.options.get('user', b''),
|
||||
'password': password,
|
||||
'user': self.options.get('user', b'').decode('utf-8'),
|
||||
'password': password.decode('utf-8'),
|
||||
'host': self.target_backend,
|
||||
'database': self.options.get('database', b''),
|
||||
'database': self.options.get('database', b'').decode('utf-8'),
|
||||
}
|
||||
_logger.info('Intercepted auth: %s' % captured_uri)
|
||||
# Switch socket to non-blocking to enable messages to pass in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue