Skip to content

Commit fb4cc5f

Browse files
committed
netbase: clean up Proxy logging
1 parent 07720b1 commit fb4cc5f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/netbase.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,7 @@ std::unique_ptr<Sock> ConnectDirectly(const CService& dest, bool manual_connecti
632632

633633
std::unique_ptr<Sock> Proxy::Connect() const
634634
{
635-
if (!IsValid()) {
636-
LogPrintf("Cannot connect to invalid Proxy\n");
637-
return {};
638-
}
635+
if (!IsValid()) return {};
639636

640637
if (!m_is_unix_socket) return ConnectDirectly(proxy, /*manual_connection=*/true);
641638

@@ -656,7 +653,6 @@ std::unique_ptr<Sock> Proxy::Connect() const
656653
socklen_t len = sizeof(addrun);
657654

658655
if(!ConnectToSocket(*sock, (struct sockaddr*)&addrun, len, path, /*manual_connection=*/true)) {
659-
LogPrintf("Cannot connect to socket for %s\n", path);
660656
return {};
661657
}
662658

0 commit comments

Comments
 (0)