mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
fix(server): Add warning level to warning error parsing post data as XML
The message `Warning: error parsing post data as XML` was logged without level even if it is a warning.
This commit is contained in:
parent
77aa81ce9d
commit
9cd583a3ad
@ -209,9 +209,10 @@ void QgsRequestHandler::parseInput()
|
|||||||
int column = -1;
|
int column = -1;
|
||||||
if ( !doc.setContent( inputString, true, &errorMsg, &line, &column ) )
|
if ( !doc.setContent( inputString, true, &errorMsg, &line, &column ) )
|
||||||
{
|
{
|
||||||
// XXX Output error but continue processing request ?
|
// Output Warning about POST without XML content
|
||||||
QgsMessageLog::logMessage( QStringLiteral( "Warning: error parsing post data as XML: at line %1, column %2: %3. Assuming urlencoded query string sent in the post body." )
|
QgsMessageLog::logMessage( QStringLiteral( "Error parsing post data as XML: at line %1, column %2: %3. Assuming urlencoded query string sent in the post body." )
|
||||||
.arg( line ).arg( column ).arg( errorMsg ) );
|
.arg( line ).arg( column ).arg( errorMsg ),
|
||||||
|
QStringLiteral( "Server" ), Qgis::MessageLevel::Warning );
|
||||||
|
|
||||||
// Process input string as a simple query text
|
// Process input string as a simple query text
|
||||||
|
|
||||||
@ -271,7 +272,7 @@ void QgsRequestHandler::setParameter( const QString &key, const QString &value )
|
|||||||
if ( key.compare( QLatin1String( "MAP" ), Qt::CaseInsensitive ) == 0 )
|
if ( key.compare( QLatin1String( "MAP" ), Qt::CaseInsensitive ) == 0 )
|
||||||
{
|
{
|
||||||
QgsMessageLog::logMessage( QStringLiteral( "Changing the 'MAP' parameter will have no effect on config path: use QgsSerververInterface::setConfigFilePath instead" ),
|
QgsMessageLog::logMessage( QStringLiteral( "Changing the 'MAP' parameter will have no effect on config path: use QgsSerververInterface::setConfigFilePath instead" ),
|
||||||
"Server", Qgis::MessageLevel::Warning );
|
QStringLiteral( "Server" ), Qgis::MessageLevel::Warning );
|
||||||
}
|
}
|
||||||
mRequest.setParameter( key, value );
|
mRequest.setParameter( key, value );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user