Skip to content
Permalink
Browse files

Merge pull request #5707 from computerchemist/patch-1

Reduce log clutter from non-errors
  • Loading branch information...
jmckenna committed Jun 10, 2019
2 parents 36175e0 + 978b0d6 commit 51f0ce00125f01fa7abe3d313fd67b0fa96ec2bd
Showing with 15 additions and 5 deletions.
  1. +15 −5 mapquery.c
@@ -986,7 +986,9 @@ int msQueryByFilter(mapObj *map)
return MS_SUCCESS;
}

msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFilter()");
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFilter()");
}
return MS_FAILURE;

query_error:
@@ -1284,7 +1286,9 @@ int msQueryByRect(mapObj *map)
return(MS_SUCCESS);
}

msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByRect()");
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByRect()");
}
return(MS_FAILURE);
}

@@ -1601,7 +1605,9 @@ int msQueryByFeatures(mapObj *map)
if(GET_LAYER(map, l)->resultcache && GET_LAYER(map, l)->resultcache->numresults > 0) return(MS_SUCCESS);
}

msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFeatures()");
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFeatures()");
}
return(MS_FAILURE);
}

@@ -1836,7 +1842,9 @@ int msQueryByPoint(mapObj *map)
return(MS_SUCCESS);
}

msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByPoint()");
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByPoint()");
}
return(MS_FAILURE);
}

@@ -2115,7 +2123,9 @@ int msQueryByShape(mapObj *map)
return(MS_SUCCESS);
}

msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByShape()");
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByShape()");
}
return(MS_FAILURE);
}

0 comments on commit 51f0ce0

Please sign in to comment.
You can’t perform that action at this time.