Skip to content

Commit

Permalink
Revert "Reduce log clutter from non-errors"
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna authored Jun 14, 2019
1 parent aea4479 commit 9f9680e
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions mapquery.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,9 +986,7 @@ int msQueryByFilter(mapObj *map)
return MS_SUCCESS;
}

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

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

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

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

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

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

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

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

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

Expand Down

0 comments on commit 9f9680e

Please sign in to comment.