diff --git a/uppsrc/PostgreSQL/PostgreSQL.cpp b/uppsrc/PostgreSQL/PostgreSQL.cpp index bcb73f236..5f3c30e01 100644 --- a/uppsrc/PostgreSQL/PostgreSQL.cpp +++ b/uppsrc/PostgreSQL/PostgreSQL.cpp @@ -313,9 +313,9 @@ void PostgreSQLSession::ExecTrans(const char * statement) } while(level == 0 && (!ConnectionOK() || ErrorMessage().Find("connection") >= 0 && itry == 0) && WhenReconnect(itry++)); - + if(trace) - *trace << statement << " failed: " << ErrorMessage() << "\n"; + *trace << statement << " failed: " << ErrorMessage() << " (level " << level << ")\n"; SetError(ErrorMessage(), statement, 0, ErrorCode()); PQclear(result); }