Skip to content

Commit

Permalink
GDAL verbosity on when debug
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfrantz committed Dec 12, 2023
1 parent 6101ac6 commit 623fb9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/higher-level/_higher-level.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ off_t ibytes = 0, obytes = 0;


// make GDAL less verbose
#ifndef FORCE_DEBUG
CPLPushErrorHandler(CPLQuietErrorHandler);
#endif

// register GDAL drivers
GDALAllRegister();
Expand Down Expand Up @@ -257,8 +259,9 @@ off_t ibytes = 0, obytes = 0;
free_aux(phl, aux);
free_param_higher(phl);


#ifndef FORCE_DEBUG
CPLPopErrorHandler();
#endif


return SUCCESS;
Expand Down

0 comments on commit 623fb9e

Please sign in to comment.