Skip to content

Commit 1d06005

Browse files
committed
updated logging
1 parent a899795 commit 1d06005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres_asio/postgres_asio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ namespace postgres_asio
111111
_fg_ios.post([this, self, cb](){ cb(0); });
112112
return;
113113
}
114-
BOOST_LOG_TRIVIAL(error) << _log_id << ", postgres::connect PQconnectdb failed, status=" << status << ", t=" << duration;
114+
BOOST_LOG_TRIVIAL(error) << _log_id << ", postgres::connect PQconnectdb failed, status=" << status << ", " << last_error() << ", t=" << duration;
115115
_fg_ios.post([this, self, status, cb](){ cb(status); });
116116
}
117117

0 commit comments

Comments
 (0)