[glom] PostgreSQL backend: Comment out the stdout exception information again.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] PostgreSQL backend: Comment out the stdout exception information again.
- Date: Tue, 20 Dec 2011 08:04:34 +0000 (UTC)
commit 97537c8fb885fe681699c6677b137f719e19df95
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Dec 19 22:57:55 2011 +0100
PostgreSQL backend: Comment out the stdout exception information again.
* glom/libglom/connectionpool_backends/postgres.cc: This was
misleading when trying all ports, when we expect some failures.
ChangeLog | 7 +++++++
glom/libglom/connectionpool_backends/postgres.cc | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 59bed75..9603ffc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-12-19 Murray Cumming <murrayc murrayc com>
+ PostgreSQL backend: Comment out the stdout exception information again.
+
+ * glom/libglom/connectionpool_backends/postgres.cc: This was
+ misleading when trying all ports, when we expect some failures.
+
+2011-12-19 Murray Cumming <murrayc murrayc com>
+
List: Really store data when the primary key is not auto-incremented.
* glom/mode_data/db_adddel/db_adddel.cc: user_added(): Do not use
diff --git a/glom/libglom/connectionpool_backends/postgres.cc b/glom/libglom/connectionpool_backends/postgres.cc
index 9d3bce2..9373950 100644
--- a/glom/libglom/connectionpool_backends/postgres.cc
+++ b/glom/libglom/connectionpool_backends/postgres.cc
@@ -119,10 +119,10 @@ Glib::RefPtr<Gnome::Gda::Connection> Postgres::attempt_connect(const Glib::ustri
cnc_string, auth_string,
Gnome::Gda::CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
}
- catch(const Glib::Error& ex)
+ catch(const Glib::Error& /* ex */)
{
//Show this on stderr because it can contain useful clues such as a hostname that cannot be resolved.
- std::cerr << G_STRFUNC << ": Attempt to connect to default database failed on port=" << port << " : " << "error code=" << ex.code() << ", error message: " << ex.what() << std::endl;
+ //std::cerr << G_STRFUNC << ": Attempt to connect to default database failed on port=" << port << " : " << "error code=" << ex.code() << ", error message: " << ex.what() << std::endl;
}
#ifdef GLOM_CONNECTION_DEBUG
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]