[fix] log when using unix sockets access to the db

Otherwise, unix sockets connection works but logs "localhost:5432". This
makes no sense since it is not a network connection.