Skip to content

Commit 31df608

Browse files
committed
Also use DCP for transaction (if available)
Also QgsDebugMsg->Level
1 parent 3ce8dc1 commit 31df608

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/providers/wfs/qgswfstransactionrequest.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@ QgsWFSTransactionRequest::QgsWFSTransactionRequest( const QgsWFSDataSourceURI &u
2323

2424
bool QgsWFSTransactionRequest::send( const QDomDocument &doc, QDomDocument &serverResponse )
2525
{
26-
QUrl url( mUri.requestUrl( QString( ) ) );
26+
QUrl url( mUri.requestUrl( QStringLiteral( "Transaction" ) ) );
27+
// We don't want/need REQUEST=Transaction
28+
url.removeQueryItem( QStringLiteral( "REQUEST" ) );
2729

28-
QgsDebugMsg( doc.toString() );
30+
QgsDebugMsgLevel( doc.toString(), 4 );
2931

3032
if ( sendPOST( url, QStringLiteral( "text/xml" ), doc.toByteArray( -1 ) ) )
3133
{
3234
QString errorMsg;
3335
if ( !serverResponse.setContent( mResponse, true, &errorMsg ) )
3436
{
35-
QgsDebugMsg( mResponse );
36-
QgsDebugMsg( errorMsg );
37+
QgsDebugMsgLevel( mResponse, 4 );
38+
QgsDebugMsgLevel( errorMsg, 4 );
3739
return false;
3840
}
39-
QgsDebugMsg( mResponse );
41+
QgsDebugMsgLevel( mResponse, 4 );
4042
return true;
4143
}
4244
return false;

0 commit comments

Comments
 (0)